]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Thermal: Provide option to choose default thermal governor
authorDurgadoss R <durgadoss.r@intel.com>
Fri, 21 Sep 2012 09:02:24 +0000 (14:32 +0530)
committerZhang Rui <rui.zhang@intel.com>
Mon, 24 Sep 2012 06:44:40 +0000 (14:44 +0800)
This patch provides option to choose the default thermal
governor. If no option is provided, the step_wise
governor is selected by default.

Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/Kconfig

index 040c6263a5929c48cf227a2352319ee3f85e8f18..c1600827794f50b5875a78367bdaf1d0792a66b8 100644 (file)
@@ -71,3 +71,34 @@ config USER_SPACE
        depends on THERMAL
        help
          Enable this to let the user space manage the platform thermals.
+
+choice
+       prompt "Default Thermal governor"
+       depends on THERMAL
+       default THERMAL_DEFAULT_GOV_STEP_WISE
+       help
+         This option sets which thermal governor shall be loaded at
+         startup. If in doubt, select 'step_wise'.
+
+config THERMAL_DEFAULT_GOV_STEP_WISE
+       bool "step_wise"
+       select STEP_WISE
+       help
+         Use the step_wise governor as default. This throttles the
+         devices one step at a time.
+
+config THERMAL_DEFAULT_GOV_FAIR_SHARE
+       bool "fair_share"
+       select FAIR_SHARE
+       help
+         Use the fair_share governor as default. This throttles the
+         devices based on their 'contribution' to a zone. The
+         contribution should be provided through platform data.
+
+config THERMAL_DEFAULT_GOV_USER_SPACE
+       bool "user_space"
+       select USER_SPACE
+       help
+         Select this if you want to let the user space manage the
+         platform thermals.
+endchoice