cpufreq: create cpufreq_generic_init() routine
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2013 14:59:07 +0000 (20:29 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:33 +0000 (00:50 +0200)
commit70e9e778337973d5bf57004092b360bd3f3c412f
tree8c8f19f60b723421764caee1926f15db36bdb35b
parent9909aa1e3b69eb05201bdbd2b9bde00c50c1723a
cpufreq: create cpufreq_generic_init() routine

Many CPUFreq drivers for SMP system (where all cores share same clock lines), do
similar stuff in their ->init() part.

This patch creates a generic routine in cpufreq core which can be used by these
so that we can remove some redundant code.

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