]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
cpufreq: ondemand: Drop one more callback from struct od_ops
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 18 Feb 2016 01:24:32 +0000 (02:24 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:07 +0000 (14:41 +0100)
The ->powersave_bias_init_cpu callback in struct od_ops is only used
in one place and that invocation may be replaced with a direct call
to the function pointed to by that callback, so change the code
accordingly and drop the callback.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_governor.h
drivers/cpufreq/cpufreq_ondemand.c

index ee46f34f04d702183881e6fd2968a6033d7c6644..ec98065dc30dde7c59324ef64d359e6d94c399da 100644 (file)
@@ -205,7 +205,6 @@ static inline struct dbs_governor *dbs_governor_of(struct cpufreq_policy *policy
 
 /* Governor specific operations */
 struct od_ops {
-       void (*powersave_bias_init_cpu)(int cpu);
        unsigned int (*powersave_bias_target)(struct cpufreq_policy *policy,
                        unsigned int freq_next, unsigned int relation);
 };
index 41d239c8dbf69012664b5a05567b38c0f51e548b..393fcf13a2b6b893f2c98a200aec64522016669c 100644 (file)
@@ -416,13 +416,12 @@ static void od_start(struct cpufreq_policy *policy)
        struct od_cpu_dbs_info_s *dbs_info = &per_cpu(od_cpu_dbs_info, cpu);
 
        dbs_info->sample_type = OD_NORMAL_SAMPLE;
-       od_ops.powersave_bias_init_cpu(cpu);
+       ondemand_powersave_bias_init_cpu(cpu);
 }
 
 define_get_cpu_dbs_routines(od_cpu_dbs_info);
 
 static struct od_ops od_ops = {
-       .powersave_bias_init_cpu = ondemand_powersave_bias_init_cpu,
        .powersave_bias_target = generic_powersave_bias_target,
 };