cpufreq: move policy kobj to update_policy_cpu()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 17 Jul 2014 05:18:28 +0000 (10:48 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 21 Jul 2014 11:43:20 +0000 (13:43 +0200)
commit1bfb425b3b6bf30f5d4b851049b2057dce860bfd
treea57edc2f3260b3312558eef90c2530b3d9639930
parent41dfd908fc09e0e57f8f44fdcf543348cd5f249c
cpufreq: move policy kobj to update_policy_cpu()

We are calling kobject_move() from two separate places currently and both these
places share another routine update_policy_cpu() which is handling everything
around updating policy->cpu. Moving ownership of policy->kobj also lies under
the role of update_policy_cpu() routine and must be handled from there.

So, Lets move kobject_move() to update_policy_cpu() and get rid of
cpufreq_nominate_new_policy_cpu() as it doesn't have anything significant left.

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