On 07-02-16, 16:24, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <[email protected]>
> 
> 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 <[email protected]>
> ---
>  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 <[email protected]>

-- 
viresh

Reply via email to