cpufreq: move /proc/cpufreq interface code to extra module
Subsystems (2)
PATCH 1/1 cpufreq: move /proc/cpufreq interface code to extra module
The deprecated /proc/cpufreq interface can easily live outside the cpufreq core now.
arch/arm/Kconfig | 4 arch/i386/Kconfig | 2 arch/sparc64/Kconfig | 3 drivers/cpufreq/Kconfig | 11 + drivers/cpufreq/Makefile | 1 drivers/cpufreq/proc_intf.c | 243 +++++++++++++++++++++++++++++++++++++++++++ include/linux/cpufreq.h | 2 kernel/cpufreq.c | 248 -------------------------------------------- 8 files changed, 263 insertions(+), 251 deletions(-)
arch/arm/Kconfig +2 -2
@@ -539,8 +539,8 @@ depends on CPU_FREQ default y -config CPU_FREQ_26_API - bool +config CPU_FREQ_PROC_INTF + tristate depends on CPU_FREQ default y
arch/i386/Kconfig +1 -1
@@ -958,7 +958,7 @@ If in doubt, say N. config CPU_FREQ_PROC_INTF - bool "/proc/cpufreq interface (DEPRECATED)" + tristate "/proc/cpufreq interface (DEPRECATED)" depends on CPU_FREQ && PROC_FS help This enables the /proc/cpufreq interface for controlling
arch/sparc64/Kconfig +1 -2
@@ -151,7 +151,7 @@ If in doubt, say N. config CPU_FREQ_PROC_INTF - bool "/proc/cpufreq interface (DEPRECATED)" + tristate "/proc/cpufreq interface (DEPRECATED)" depends on CPU_FREQ && PROC_FS help This enables the /proc/cpufreq interface for controlling
@@ -166,7 +166,6 @@ tristate default y - config US3_FREQ tristate "UltraSPARC-III CPU Frequency driver" depends on CPU_FREQ && CPU_FREQ_TABLE
drivers/cpufreq/Kconfig +11 -0
@@ -0,0 +1,11 @@ +config CPU_FREQ_PROC_INTF + tristate "/proc/cpufreq interface (deprecated)" + depends on CPU_FREQ && PROC_FS + help + This enables the /proc/cpufreq interface for controlling + CPUFreq. Please note that it is recommended to use the sysfs + interface instead (which is built automatically). + + For details, take a look at linux/Documentation/cpufreq. + + If in doubt, say N.
drivers/cpufreq/Makefile +1 -0
@@ -1,2 +1,3 @@ #CPUfreq governors and cross-arch helpers obj-$(CONFIG_CPU_FREQ_TABLE) += freq_table.o +obj-$(CONFIG_CPU_FREQ_PROC_INTF) += proc_intf.o
drivers/cpufreq/proc_intf.c +244 -0
244 lines not on this page · raw message
include/linux/cpufreq.h +2 -0
@@ -205,6 +205,8 @@int cpufreq_restore (void );#endif +/* the proc_intf.c needs this */ +int cpufreq_parse_governor (char *str_governor,unsigned int *policy,struct cpufreq_governor **governor);#ifdef CONFIG_CPU_FREQ_24_API /*********************************************************************
kernel/cpufreq.c +2 -246
284 lines not on this page · raw message