]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Pass policy to cpufreq_add_policy_cpu()
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 3 Aug 2013 23:20:07 +0000 (01:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Aug 2013 21:02:50 +0000 (23:02 +0200)
commit17578bd9203886d797275a376951506e618ee471
treeaf0786e2884a0d31b9c0506ed8d01ee1ccc44414
parentffd0ca66063fcbbd1def67fec7fdfb9dcb82572f
cpufreq: Pass policy to cpufreq_add_policy_cpu()

The caller of cpufreq_add_policy_cpu() already has a pointer to the
policy structure and there is no need to look it up again in
cpufreq_add_policy_cpu().  Let's pass it directly.

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