summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShimin Zhou <shimingx.zhou@intel.com>2015-09-10 09:04:55 +0800
committerZhenming Zhao <zhenmingx.zhao@intel.com>2015-09-10 16:01:51 +0800
commitc2cfa513c405298280794a946fa70141ee7fc28f (patch)
treedaa8b5730c260f33d178603fa71d9e1db917af25
parent3964570409edc05d16d38a61644906747d4ecb5c (diff)
downloadintel-c2cfa513c405298280794a946fa70141ee7fc28f.tar.gz
power: enable power clamp function
Enable intel powerclamp driver in kernel, and it will be registered to the generic thermal layer as a cooling device. Through injecting idle time to the system according to user-selected idle ratio, it helps reducing over-temperature issue. Signed-off-by: Shimin Zhou <shimingx.zhou@intel.com> Signed-off-by: Zhenming Zhao <zhenmingx.zhao@intel.com>
-rw-r--r--arch/x86/configs/i386_edison_defconfig2
-rw-r--r--drivers/thermal/intel_powerclamp.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/configs/i386_edison_defconfig b/arch/x86/configs/i386_edison_defconfig
index 86ee544ecc8..4e68b91e348 100644
--- a/arch/x86/configs/i386_edison_defconfig
+++ b/arch/x86/configs/i386_edison_defconfig
@@ -1852,7 +1852,7 @@ CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_USER_SPACE is not set
# CONFIG_CPU_THERMAL is not set
# CONFIG_THERMAL_EMULATION is not set
-# CONFIG_INTEL_POWERCLAMP is not set
+CONFIG_INTEL_POWERCLAMP=y
CONFIG_SENSORS_THERMAL_MRFLD=y
CONFIG_SOC_THERMAL=y
CONFIG_WATCHDOG=y
diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel_powerclamp.c
index b40b37cd25e..cb604a1d486 100644
--- a/drivers/thermal/intel_powerclamp.c
+++ b/drivers/thermal/intel_powerclamp.c
@@ -675,6 +675,7 @@ static const struct x86_cpu_id intel_powerclamp_ids[] = {
{ X86_VENDOR_INTEL, 6, 0x2e},
{ X86_VENDOR_INTEL, 6, 0x2f},
{ X86_VENDOR_INTEL, 6, 0x3a},
+ { X86_VENDOR_INTEL, 6, 0x4a},
{}
};
MODULE_DEVICE_TABLE(x86cpu, intel_powerclamp_ids);