Re: [PATCH 2/3] cpufreq: governor: Rearrange governor data structures

From: Viresh Kumar
Date: Sun Feb 07 2016 - 10:56:05 EST


On 07-02-16, 16:24, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> The struct policy_dbs_info objects representing per-policy governor
> data are not accessible directly from the corresponding policy
> objects. To access them, one has to get a pointer to the
> struct cpu_dbs_info of policy->cpu and use the policy_dbs field of
> that which isn't really straightforward.
>
> To address that rearrange the governor data structures so the
> governor_data pointer in struct cpufreq_policy will point to
> struct policy_dbs_info (instead of struct dbs_data) and that will
> contain a pointer to struct dbs_data.
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> ---
> drivers/cpufreq/amd_freq_sensitivity.c | 3 -
> drivers/cpufreq/cpufreq_conservative.c | 6 +-
> drivers/cpufreq/cpufreq_governor.c | 74 ++++++++++++++++-----------------
> drivers/cpufreq/cpufreq_governor.h | 27 ++++++------
> drivers/cpufreq/cpufreq_ondemand.c | 18 ++++----
> 5 files changed, 68 insertions(+), 60 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

--
viresh