From 0af64655d7cc9caa2742fbed522a0e80f53dde07 Mon Sep 17 00:00:00 2001 From: Octav Zlatior Date: Mon, 8 Jun 2015 16:17:15 +0200 Subject: thermal: enable selecting bang-bang in menuconfig Signed-off-by: Octav Zlatior --- drivers/thermal/Kconfig | 8 ++++++++ include/linux/thermal.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index af40db0df58e..e03f79700de1 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 5eac316490ea..8ab1b24d0c51 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 -- cgit v1.2.3