cpufreq: Rework two functions related to CPU offline
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jul 2015 21:11:09 +0000 (23:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Jul 2015 15:24:10 +0000 (17:24 +0200)
commit15c0b4d222f83672407419f9c9e167e996d8ad2b
tree1baa038a02be5e8e3c8c1892c2e18f6027353266
parentc6e53c69ef463ba2749ba9ee9b3d9d7f97dab94a
cpufreq: Rework two functions related to CPU offline

Since __cpufreq_remove_dev_prepare() and __cpufreq_remove_dev_finish()
are about CPU offline rather than about CPU removal, rename them to
cpufreq_offline_prepare() and cpufreq_offline_finish(), respectively.

Also change their argument from a struct device pointer to a CPU
number, because they use the CPU number only internally anyway
and make them void as their return values are ignored.

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