]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: call cpufreq_driver->get() after calling ->init()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2013 14:58:30 +0000 (20:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:28 +0000 (00:50 +0200)
commit0b2de01a391db1b0a3fc361af8f8f4621a95c558
tree5cccf8d9f72756628cfc3b8e54764bb118da5cee
parentca8ad8fa08ef9e91411477dad22f78286f15500a
cpufreq: call cpufreq_driver->get() after calling ->init()

Almost all drivers set policy->cur with current CPU frequency in their ->init()
part. This can be done for all of them at core level and so they wouldn't need
to do it.

This patch adds supporting code in cpufreq core for calling get() after we have
called init() for a policy.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c