diff options
author | Zhang Rui <rui.zhang@intel.com> | 2013-03-26 11:57:01 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2013-04-14 11:28:49 -0400 |
commit | bbf7fc88c78f7317e2cdcf77e974c8a9a8312641 (patch) | |
tree | d9a1610c07b32079facb04fae14b1d55b48440f1 | |
parent | 80a26a5c22b90a82b8696cb72c1d09d525ada53e (diff) |
Thermal: build cpu_cooling code into thermal_sys module
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Eduardo Valentin <eduardo.valentin@ti.com>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
-rw-r--r-- | drivers/thermal/Kconfig | 2 | ||||
-rw-r--r-- | drivers/thermal/Makefile | 2 | ||||
-rw-r--r-- | include/linux/cpu_cooling.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index fb0672baff40..d1c2160492aa 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig | |||
@@ -67,7 +67,7 @@ config THERMAL_GOV_USER_SPACE | |||
67 | Enable this to let the user space manage the platform thermals. | 67 | Enable this to let the user space manage the platform thermals. |
68 | 68 | ||
69 | config CPU_THERMAL | 69 | config CPU_THERMAL |
70 | tristate "generic cpu cooling support" | 70 | bool "generic cpu cooling support" |
71 | depends on CPU_FREQ | 71 | depends on CPU_FREQ |
72 | select CPU_FREQ_TABLE | 72 | select CPU_FREQ_TABLE |
73 | help | 73 | help |
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index b17bfb055498..c054d410ac3f 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile | |||
@@ -11,7 +11,7 @@ thermal_sys-$(CONFIG_THERMAL_GOV_STEP_WISE) += step_wise.o | |||
11 | thermal_sys-$(CONFIG_THERMAL_GOV_USER_SPACE) += user_space.o | 11 | thermal_sys-$(CONFIG_THERMAL_GOV_USER_SPACE) += user_space.o |
12 | 12 | ||
13 | # cpufreq cooling | 13 | # cpufreq cooling |
14 | obj-$(CONFIG_CPU_THERMAL) += cpu_cooling.o | 14 | thermal_sys-$(CONFIG_CPU_THERMAL) += cpu_cooling.o |
15 | 15 | ||
16 | # platform thermal drivers | 16 | # platform thermal drivers |
17 | obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o | 17 | obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o |
diff --git a/include/linux/cpu_cooling.h b/include/linux/cpu_cooling.h index bc479b1e0fd9..77c87c9d0193 100644 --- a/include/linux/cpu_cooling.h +++ b/include/linux/cpu_cooling.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #define CPUFREQ_COOLING_START 0 | 29 | #define CPUFREQ_COOLING_START 0 |
30 | #define CPUFREQ_COOLING_STOP 1 | 30 | #define CPUFREQ_COOLING_STOP 1 |
31 | 31 | ||
32 | #if defined(CONFIG_CPU_THERMAL) || defined(CONFIG_CPU_THERMAL_MODULE) | 32 | #ifdef CONFIG_CPU_THERMAL |
33 | /** | 33 | /** |
34 | * cpufreq_cooling_register - function to create cpufreq cooling device. | 34 | * cpufreq_cooling_register - function to create cpufreq cooling device. |
35 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen | 35 | * @clip_cpus: cpumask of cpus where the frequency constraints will happen |