]> 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)
commit5e759b4deead504132c9099945d52d610e40db69
tree5cccf8d9f72756628cfc3b8e54764bb118da5cee
parent04213f11391df80ba2803ec0e88a3cf6491f9f93
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