cpufreq: Move get_cpu_idle_time() to cpufreq.c
Governors other than ondemand and conservative can also use get_cpu_idle_time() and they aren't required to compile cpufreq_governor.c. So, move these independent routines to cpufreq.c instead. Signed-off-by:Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Showing
- drivers/cpufreq/cpufreq.c 38 additions, 0 deletionsdrivers/cpufreq/cpufreq.c
- drivers/cpufreq/cpufreq_governor.c 0 additions, 36 deletionsdrivers/cpufreq/cpufreq_governor.c
- drivers/cpufreq/cpufreq_governor.h 0 additions, 1 deletiondrivers/cpufreq/cpufreq_governor.h
- include/linux/cpufreq.h 1 addition, 0 deletionsinclude/linux/cpufreq.h
Please register or sign in to comment