diff options
-rw-r--r-- | drivers/thermal/Kconfig | 8 | ||||
-rw-r--r-- | include/linux/thermal.h | 2 |
2 files changed, 10 insertions, 0 deletions
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 |