cpufreq: Introduce cpufreq_update_current_freq()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Mar 2016 14:46:25 +0000 (15:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Mar 2016 22:13:36 +0000 (23:13 +0100)
commit999f572983de5e1a4ee9f42daa51b5448f12dd64
tree39a6d29cef230b193517e076525af964b75163c8
parent0a300767e5882ad5b687966c80f9620aa0871be5
cpufreq: Introduce cpufreq_update_current_freq()

Move the part of cpufreq_update_policy() that obtains the current
frequency from the driver and updates policy->cur if necessary to
a separate function, cpufreq_get_current_freq().

That should not introduce functional changes and subsequent change
set will need it.

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