summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctav Zlatior <octav.zlatior@theobroma-systems.com>2015-06-08 16:17:15 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2015-07-30 18:53:03 +0200
commit0af64655d7cc9caa2742fbed522a0e80f53dde07 (patch)
tree06863fe4721a614a2275efb0dbade9d2428de337
parent9de13853d408d7130fcebb3d7aea6e6474cf34da (diff)
thermal: enable selecting bang-bang in menuconfig
Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
-rw-r--r--drivers/thermal/Kconfig8
-rw-r--r--include/linux/thermal.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index af40db0df58..e03f79700de 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -64,6 +64,14 @@ config THERMAL_DEFAULT_GOV_FAIR_SHARE
devices based on their 'contribution' to a zone. The
contribution should be provided through platform data.
+config THERMAL_DEFAULT_GOV_BANG_BANG
+ bool "bang_bang"
+ select THERMAL_GOV_BANG_BANG
+ help
+ Use the bang-bang governor as default. This throttles the
+ devices based on absolute temperature vs. trip temperature,
+ with hysteresis.
+
config THERMAL_DEFAULT_GOV_USER_SPACE
bool "user_space"
select THERMAL_GOV_USER_SPACE
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 5eac316490e..8ab1b24d0c5 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -54,6 +54,8 @@
#define DEFAULT_THERMAL_GOVERNOR "step_wise"
#elif defined(CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE)
#define DEFAULT_THERMAL_GOVERNOR "fair_share"
+#elif defined(CONFIG_THERMAL_DEFAULT_GOV_BANG_BANG)
+#define DEFAULT_THERMAL_GOVERNOR "bang_bang"
#elif defined(CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE)
#define DEFAULT_THERMAL_GOVERNOR "user_space"
#endif