]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Tue, 9 Feb 2016 20:34:54 +0000 (21:34 +0100)
commitafd592939acbdfda56fbbae37b50f8f3bbfb2f16
treed34bc06aa83b8b5c04c271c04f160cc29365de74
parent643db0b9a2c770a396fdaa557e95f4dd840b085d
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