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)
commitda60ce9f2faca87013fd3cab1c3bed5183608c3d
tree5cccf8d9f72756628cfc3b8e54764bb118da5cee
parent8e08cf03a46299bc1ebf9dbd2ebe7d3093f89541
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