cpufreq: governor: Simplify cpufreq_governor_limits()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 7 Feb 2016 15:23:49 +0000 (16:23 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:40:56 +0000 (14:40 +0100)
commite9751894000af398d5895b3ee96052f57b80cc44
tree26101d4c1f300b91122edf3eae6c0e17a6be8877
parentd10b5eb5fce436ba22443ab83eeb36e195dbf772
cpufreq: governor: Simplify cpufreq_governor_limits()

Use the observation that cpufreq_governor_limits() doesn't have to
get to the policy object it wants to manipulate by walking the
reference chain cdbs->policy_dbs->policy, as the final pointer is
actually equal to its argument, and make it access the policy
object directy via its argument.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_governor.c
This page took 0.026065 seconds and 5 git commands to generate.