summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorEduardo Valentin2013-03-26 22:38:34 +0100
committerZhang Rui2013-04-02 15:34:42 +0200
commit8837295a73f3500b32e18f9862c7bdde0b958648 (patch)
treef0749e2a6ad90dabf901480cbc740aa9c47a4a1f /drivers/thermal
parentthermal: exynos: Adapt to temperature emulation core thermal framework (diff)
downloadkernel-qcow2-linux-8837295a73f3500b32e18f9862c7bdde0b958648.tar.gz
kernel-qcow2-linux-8837295a73f3500b32e18f9862c7bdde0b958648.tar.xz
kernel-qcow2-linux-8837295a73f3500b32e18f9862c7bdde0b958648.zip
thermal: add a warning for temperature emulation feature
Because this feature is for debuging purposes, it is highly recommended to do not enable this on production systems. This patch adds warnings for system integrators, so that people are aware of this potential security issue. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 2a19120c32bd..fb0672baff40 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -86,6 +86,10 @@ config THERMAL_EMULATION
user can manually input temperature and test the different trip
threshold behaviour for simulation purpose.
+ WARNING: Be careful while enabling this option on production systems,
+ because userland can easily disable the thermal policy by simply
+ flooding this sysfs node with low temperature values.
+
config SPEAR_THERMAL
bool "SPEAr thermal sensor driver"
depends on PLAT_SPEAR