aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-03-26 17:38:34 -0400
committerZhang Rui <rui.zhang@intel.com>2013-04-02 09:34:42 -0400
commit8837295a73f3500b32e18f9862c7bdde0b958648 (patch)
treef0749e2a6ad90dabf901480cbc740aa9c47a4a1f
parentbffd1f8ac87a798515a8aed5f64047b182e049f5 (diff)
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>
-rw-r--r--Documentation/thermal/sysfs-api.txt4
-rw-r--r--drivers/thermal/Kconfig4
2 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt
index 6859661c9d31..277530a5786c 100644
--- a/Documentation/thermal/sysfs-api.txt
+++ b/Documentation/thermal/sysfs-api.txt
@@ -265,6 +265,10 @@ emul_temp
265 Unit: millidegree Celsius 265 Unit: millidegree Celsius
266 WO, Optional 266 WO, Optional
267 267
268 WARNING: Be careful while enabling this option on production systems,
269 because userland can easily disable the thermal policy by simply
270 flooding this sysfs node with low temperature values.
271
268***************************** 272*****************************
269* Cooling device attributes * 273* Cooling device attributes *
270***************************** 274*****************************
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
86 user can manually input temperature and test the different trip 86 user can manually input temperature and test the different trip
87 threshold behaviour for simulation purpose. 87 threshold behaviour for simulation purpose.
88 88
89 WARNING: Be careful while enabling this option on production systems,
90 because userland can easily disable the thermal policy by simply
91 flooding this sysfs node with low temperature values.
92
89config SPEAR_THERMAL 93config SPEAR_THERMAL
90 bool "SPEAr thermal sensor driver" 94 bool "SPEAr thermal sensor driver"
91 depends on PLAT_SPEAR 95 depends on PLAT_SPEAR