]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cpufreq: Extract the handover of policy cpu to a helper function
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Mon, 29 Jul 2013 22:54:36 +0000 (04:24 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Jul 2013 12:16:00 +0000 (14:16 +0200)
commitfdc7fb5a9e3482f3c3641e9751afe135164c8f1e
tree033b143bf17f7ea59b001f3b57c7c30e3aa15f9f
parentf2f7de9236772bd098afd3aa30325c891d016ca2
cpufreq: Extract the handover of policy cpu to a helper function

During cpu offline, when the policy->cpu is going down, some other CPU
present in the policy->cpus mask is nominated as the new policy->cpu.
Extract this functionality from __cpufreq_remove_dev() and implement
it in a helper function. This helps in upcoming code reorganization.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c