diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-12-02 23:07:51 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-06 20:20:22 -0500 |
commit | affde5d06af1e39c2929e36a063e3912f02fc58f (patch) | |
tree | 7430dfd5b481925a3692c99fb7f71c83fa105762 /drivers/cpufreq/cpufreq_conservative.c | |
parent | e68fe18c5b5442baca162ccf3b273326e6132a51 (diff) |
cpufreq: governor: Pass policy as argument to ->gov_dbs_timer()
Pass 'policy' as argument to ->gov_dbs_timer() instead of cdbs and
dbs_data.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 1fa1deb6e91f..606ad74abe6e 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -115,13 +115,13 @@ static void cs_check_cpu(int cpu, unsigned int load) | |||
115 | } | 115 | } |
116 | } | 116 | } |
117 | 117 | ||
118 | static unsigned int cs_dbs_timer(struct cpu_dbs_info *cdbs, | 118 | static unsigned int cs_dbs_timer(struct cpufreq_policy *policy, bool modify_all) |
119 | struct dbs_data *dbs_data, bool modify_all) | ||
120 | { | 119 | { |
120 | struct dbs_data *dbs_data = policy->governor_data; | ||
121 | struct cs_dbs_tuners *cs_tuners = dbs_data->tuners; | 121 | struct cs_dbs_tuners *cs_tuners = dbs_data->tuners; |
122 | 122 | ||
123 | if (modify_all) | 123 | if (modify_all) |
124 | dbs_check_cpu(dbs_data, cdbs->shared->policy->cpu); | 124 | dbs_check_cpu(dbs_data, policy->cpu); |
125 | 125 | ||
126 | return delay_for_sampling_rate(cs_tuners->sampling_rate); | 126 | return delay_for_sampling_rate(cs_tuners->sampling_rate); |
127 | } | 127 | } |