]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Thermal: build cpu_cooling code into thermal_sys module
authorZhang Rui <rui.zhang@intel.com>
Tue, 26 Mar 2013 15:57:01 +0000 (23:57 +0800)
committerZhang Rui <rui.zhang@intel.com>
Sun, 14 Apr 2013 15:28:49 +0000 (23:28 +0800)
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>
drivers/thermal/Kconfig
drivers/thermal/Makefile
include/linux/cpu_cooling.h

index fb0672baff40b165bfddb2fb83363a8ca6cdec5c..d1c2160492aacb2dc4886dc8ee9c173235ace1df 100644 (file)
@@ -67,7 +67,7 @@ config THERMAL_GOV_USER_SPACE
          Enable this to let the user space manage the platform thermals.
 
 config CPU_THERMAL
-       tristate "generic cpu cooling support"
+       bool "generic cpu cooling support"
        depends on CPU_FREQ
        select CPU_FREQ_TABLE
        help
index b17bfb055498898d8e7f1e7fda87d18430e2000f..c054d410ac3f001e7192f63c0bf65767d55b22b3 100644 (file)
@@ -11,7 +11,7 @@ thermal_sys-$(CONFIG_THERMAL_GOV_STEP_WISE)   += step_wise.o
 thermal_sys-$(CONFIG_THERMAL_GOV_USER_SPACE)   += user_space.o
 
 # cpufreq cooling
-obj-$(CONFIG_CPU_THERMAL)      += cpu_cooling.o
+thermal_sys-$(CONFIG_CPU_THERMAL)      += cpu_cooling.o
 
 # platform thermal drivers
 obj-$(CONFIG_SPEAR_THERMAL)    += spear_thermal.o
index bc479b1e0fd9fa21e90a2c4c738cdb49ecd525f7..77c87c9d019341443e1e37712df9a16d33fd5eb1 100644 (file)
@@ -29,7 +29,7 @@
 #define CPUFREQ_COOLING_START          0
 #define CPUFREQ_COOLING_STOP           1
 
-#if defined(CONFIG_CPU_THERMAL) || defined(CONFIG_CPU_THERMAL_MODULE)
+#ifdef CONFIG_CPU_THERMAL
 /**
  * cpufreq_cooling_register - function to create cpufreq cooling device.
  * @clip_cpus: cpumask of cpus where the frequency constraints will happen