Skip to content

Commit e97a982

Browse files
committed
cpufreq: intel_pstate: Use __ro_after_init for three variables
There are at least 3 variables in intel_pstate that do not get updated after they have been initialized, so annotate them with __ro_after_init. Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0f2828e commit e97a982

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ struct pstate_funcs {
293293
static struct pstate_funcs pstate_funcs __read_mostly;
294294

295295
static bool hwp_active __ro_after_init;
296-
static int hwp_mode_bdw __read_mostly;
297-
static bool per_cpu_limits __read_mostly;
296+
static int hwp_mode_bdw __ro_after_init;
297+
static bool per_cpu_limits __ro_after_init;
298+
static bool hwp_forced __ro_after_init;
298299
static bool hwp_boost __read_mostly;
299-
static bool hwp_forced __read_mostly;
300300

301301
static struct cpufreq_driver *intel_pstate_driver __read_mostly;
302302

0 commit comments

Comments
 (0)