diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-02-07 10:09:51 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-03-09 08:40:55 -0500 |
commit | ea59ee0dc9796a4e879291cc2f4728d04c499313 (patch) | |
tree | 6081a8d25c06d43d940280cd2249cb79d3b30524 /drivers/cpufreq/cpufreq_conservative.c | |
parent | 906a6e5aaef24d3c80bf6a06c794c7541aca64be (diff) |
cpufreq: governor: Drop the gov pointer from struct dbs_data
Since it is possible to obtain a pointer to struct dbs_governor
from a pointer to the struct governor embedded in it with the help
of container_of(), the additional gov pointer in struct dbs_data
isn't really necessary.
Drop that pointer and make the code using it reach the dbs_governor
object via policy->governor.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/cpufreq_conservative.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_conservative.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 20c82913ef42..7d5f181e1679 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c | |||
@@ -107,7 +107,7 @@ static unsigned int cs_dbs_timer(struct cpufreq_policy *policy) | |||
107 | struct dbs_data *dbs_data = policy->governor_data; | 107 | struct dbs_data *dbs_data = policy->governor_data; |
108 | struct cs_dbs_tuners *cs_tuners = dbs_data->tuners; | 108 | struct cs_dbs_tuners *cs_tuners = dbs_data->tuners; |
109 | 109 | ||
110 | dbs_check_cpu(dbs_data, policy->cpu); | 110 | dbs_check_cpu(policy, policy->cpu); |
111 | return delay_for_sampling_rate(cs_tuners->sampling_rate); | 111 | return delay_for_sampling_rate(cs_tuners->sampling_rate); |
112 | } | 112 | } |
113 | 113 | ||