]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pstate: Declare pid_params/pstate_funcs/hwp_active __read_mostly
authorJisheng Zhang <jszhang@marvell.com>
Mon, 27 Jun 2016 10:07:18 +0000 (18:07 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jun 2016 22:04:04 +0000 (00:04 +0200)
commit9068191656f8e3f304bae2f4427a1eeb5e09596b
treee6aa6dd0bf9a2fdd11edc8286c2963c6aa8753ab
parentb28adf07ac94dae2d9bea5afe8a93be03b709b79
intel_pstate: Declare pid_params/pstate_funcs/hwp_active __read_mostly

pid_params is written once by copy_pid_params() during initialization,
and thereafter is mostly read by hot path intel_pstate_update_util().
The read of pid_params gets more after commit 2da9f5cdcb76 ("cpufreq:
intel_pstate: Replace timers with utilization update callbacks")

pstate_funcs is written once by copy_cpu_funcs() during initialization,
and thereafter is mostly read by hot path intel_pstate_update_util()

hwp_active is written to once during initialization and thereafter is
mostly read by hot path intel_pstate_update_util().

The fact that they are mostly read and not written to makes them
candidates for __read_mostly declarations.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c