Re: [PATCH v2 7/10] cpufreq: governor: Drop the gov pointer from struct dbs_data
From: Viresh Kumar
Date: Fri Feb 05 2016 - 03:29:31 EST
On 05-02-16, 03:19, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> 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@xxxxxxxxx>
> ---
> drivers/cpufreq/amd_freq_sensitivity.c | 2 -
> drivers/cpufreq/cpufreq_conservative.c | 2 -
> drivers/cpufreq/cpufreq_governor.c | 63 +++++++++++++++------------------
> drivers/cpufreq/cpufreq_governor.h | 8 +++-
> drivers/cpufreq/cpufreq_ondemand.c | 2 -
> 5 files changed, 39 insertions(+), 38 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
--
viresh