aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/Kconfig
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2012-11-14 20:16:20 -0500
committerZhang Rui <rui.zhang@intel.com>2012-11-15 07:41:30 -0500
commit72e198978223f2020f7f59a6e2520f2b7d005e72 (patch)
treecf02459f5dd264855fb28c01f31e2b1045f39e4d /drivers/thermal/Kconfig
parenta0f846c23cf8e52da054abb52294d54e4b1986f9 (diff)
Refactor drivers/thermal/Kconfig
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/Kconfig')
-rw-r--r--drivers/thermal/Kconfig103
1 files changed, 51 insertions, 52 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 266c15eb89ea..937a23da66e5 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -13,15 +13,62 @@ menuconfig THERMAL
13 All platforms with ACPI thermal support can use this driver. 13 All platforms with ACPI thermal support can use this driver.
14 If you want this support, you should say Y or M here. 14 If you want this support, you should say Y or M here.
15 15
16if THERMAL
17
16config THERMAL_HWMON 18config THERMAL_HWMON
17 bool 19 bool
18 depends on THERMAL
19 depends on HWMON=y || HWMON=THERMAL 20 depends on HWMON=y || HWMON=THERMAL
20 default y 21 default y
21 22
23choice
24 prompt "Default Thermal governor"
25 default THERMAL_DEFAULT_GOV_STEP_WISE
26 help
27 This option sets which thermal governor shall be loaded at
28 startup. If in doubt, select 'step_wise'.
29
30config THERMAL_DEFAULT_GOV_STEP_WISE
31 bool "step_wise"
32 select STEP_WISE
33 help
34 Use the step_wise governor as default. This throttles the
35 devices one step at a time.
36
37config THERMAL_DEFAULT_GOV_FAIR_SHARE
38 bool "fair_share"
39 select FAIR_SHARE
40 help
41 Use the fair_share governor as default. This throttles the
42 devices based on their 'contribution' to a zone. The
43 contribution should be provided through platform data.
44
45config THERMAL_DEFAULT_GOV_USER_SPACE
46 bool "user_space"
47 select USER_SPACE
48 help
49 Select this if you want to let the user space manage the
50 lpatform thermals.
51
52endchoice
53
54config FAIR_SHARE
55 bool "Fair-share thermal governor"
56 help
57 Enable this to manage platform thermals using fair-share governor.
58
59config STEP_WISE
60 bool "Step_wise thermal governor"
61 help
62 Enable this to manage platform thermals using a simple linear
63
64config USER_SPACE
65 bool "User_space thermal governor"
66 help
67 Enable this to let the user space manage the platform thermals.
68
22config CPU_THERMAL 69config CPU_THERMAL
23 bool "generic cpu cooling support" 70 bool "generic cpu cooling support"
24 depends on THERMAL && CPU_FREQ 71 depends on CPU_FREQ
25 select CPU_FREQ_TABLE 72 select CPU_FREQ_TABLE
26 help 73 help
27 This implements the generic cpu cooling mechanism through frequency 74 This implements the generic cpu cooling mechanism through frequency
@@ -33,7 +80,6 @@ config CPU_THERMAL
33 80
34config SPEAR_THERMAL 81config SPEAR_THERMAL
35 bool "SPEAr thermal sensor driver" 82 bool "SPEAr thermal sensor driver"
36 depends on THERMAL
37 depends on PLAT_SPEAR 83 depends on PLAT_SPEAR
38 depends on OF 84 depends on OF
39 help 85 help
@@ -42,7 +88,6 @@ config SPEAR_THERMAL
42 88
43config RCAR_THERMAL 89config RCAR_THERMAL
44 tristate "Renesas R-Car thermal driver" 90 tristate "Renesas R-Car thermal driver"
45 depends on THERMAL
46 depends on ARCH_SHMOBILE 91 depends on ARCH_SHMOBILE
47 help 92 help
48 Enable this to plug the R-Car thermal sensor driver into the Linux 93 Enable this to plug the R-Car thermal sensor driver into the Linux
@@ -50,57 +95,11 @@ config RCAR_THERMAL
50 95
51config EXYNOS_THERMAL 96config EXYNOS_THERMAL
52 tristate "Temperature sensor on Samsung EXYNOS" 97 tristate "Temperature sensor on Samsung EXYNOS"
53 depends on (ARCH_EXYNOS4 || ARCH_EXYNOS5) && THERMAL 98 depends on (ARCH_EXYNOS4 || ARCH_EXYNOS5)
54 select CPU_FREQ_TABLE 99 select CPU_FREQ_TABLE
55 help 100 help
56 If you say yes here you get support for TMU (Thermal Managment 101 If you say yes here you get support for TMU (Thermal Managment
57 Unit) on SAMSUNG EXYNOS series of SoC. 102 Unit) on SAMSUNG EXYNOS series of SoC.
58 103
59config FAIR_SHARE
60 bool "Fair-share thermal governor"
61 depends on THERMAL
62 help
63 Enable this to manage platform thermals using fair-share governor.
64
65config STEP_WISE
66 bool "Step_wise thermal governor"
67 depends on THERMAL
68 help
69 Enable this to manage platform thermals using a simple linear
70
71config USER_SPACE
72 bool "User_space thermal governor"
73 depends on THERMAL
74 help
75 Enable this to let the user space manage the platform thermals.
76
77choice
78 prompt "Default Thermal governor"
79 depends on THERMAL
80 default THERMAL_DEFAULT_GOV_STEP_WISE
81 help
82 This option sets which thermal governor shall be loaded at
83 startup. If in doubt, select 'step_wise'.
84
85config THERMAL_DEFAULT_GOV_STEP_WISE
86 bool "step_wise"
87 select STEP_WISE
88 help
89 Use the step_wise governor as default. This throttles the
90 devices one step at a time.
91
92config THERMAL_DEFAULT_GOV_FAIR_SHARE
93 bool "fair_share"
94 select FAIR_SHARE
95 help
96 Use the fair_share governor as default. This throttles the
97 devices based on their 'contribution' to a zone. The
98 contribution should be provided through platform data.
99 104
100config THERMAL_DEFAULT_GOV_USER_SPACE 105endif
101 bool "user_space"
102 select USER_SPACE
103 help
104 Select this if you want to let the user space manage the
105 platform thermals.
106endchoice