@@ -2000,6 +2000,18 @@ static int intel_pstate_init_cpu(unsigned int cpunum)
return 0;
}
+static void intel_pstate_clear_update_util_hook(unsigned int cpu)
+{
+ struct cpudata *cpu_data = all_cpu_data[cpu];
+
+ if (!cpu_data->update_util_set)
+ return;
+
+ cpufreq_remove_update_util_hook(cpu);
+ cpu_data->update_util_set = false;
+ synchronize_rcu();
+}
+
static void intel_pstate_set_update_util_hook(unsigned int cpu_num)
{
struct cpudata *cpu = all_cpu_data[cpu_num];
@@ -2019,18 +2031,6 @@ static void intel_pstate_set_update_util_hook(unsigned int cpu_num)
cpu->update_util_set = true;
}
-static void intel_pstate_clear_update_util_hook(unsigned int cpu)
-{
- struct cpudata *cpu_data = all_cpu_data[cpu];
-
- if (!cpu_data->update_util_set)
- return;
-
- cpufreq_remove_update_util_hook(cpu);
- cpu_data->update_util_set = false;
- synchronize_rcu();
-}
-
static int intel_pstate_get_max_freq(struct cpudata *cpu)
{
return global.turbo_disabled || global.no_turbo ?
Trivial. Signed-off-by: Francisco Jerez <currojerez@riseup.net> --- drivers/cpufreq/intel_pstate.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)