Thermal: Provide option to choose default thermal governor
PATCH 1/1 Thermal: Provide option to choose default thermal governor
This patch provides option to choose the default thermal governor. If no option is provided, the step_wise governor is selected by default.
--- drivers/thermal/Kconfig | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)
drivers/thermal/Kconfig +33 -0
@@ -71,3 +71,36 @@ 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 + +
Signature · 1 line
1.7.9.5
Zhang Rui
reviewerQuoted 4 lines · Durgadoss R
This patch provides option to choose the default thermal governor. If no option is provided, the
step_wisegovernor is selected by default.
yep, I like this approach. will apply to my next tree.
thanks,
rui
Quoted 36 lines
Signed-off-by Durgadoss R <[email protected]>--- drivers/thermal/Kconfig | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)drivers/thermal/Kconfig +23
-0@@ -71,3 +71,36 @@ 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.
drivers/thermal/Kconfig config USER_SPACE · line 106
Quoted 10 lines
drivers/thermal/Kconfig +10
-0+ +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 + +
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Rui,
Quoted 8 lines
-----Original Message-----
From: Zhang, Rui
Sent: Monday, September 24, 2012 11:10 AM
To: R, Durgadoss
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] Thermal: Provide option to choose default thermal governor
Quoted 6 lines
Quoted 4 lines · Durgadoss R
This patch provides option to choose the default thermal governor. If no option is provided, the
step_wisegovernor is selected by default.yep, I like this approach. will apply to my next tree.
That’s great.. Thanks Rui.
In this case, I believe you are taking the v4 of the 15 patches, and this one on top of them.
Meanwhile, I will fix the minor comments on patches 4 and 7 and submit separate patches, hopefully by this week.
Thanks,
Durga
Zhang Rui
reviewerQuoted 15 lines · Durgadoss
Hi Rui,
Quoted 13 lines
-----Original Message-----
From: Zhang, Rui
Sent: Monday, September 24, 2012 11:10 AM
To: R, Durgadoss
Cc: [email protected]; [email protected]
Subject: Re: [PATCH] Thermal: Provide option to choose default thermal governorQuoted 4 lines · Durgadoss R
This patch provides option to choose the default thermal governor. If no option is provided, the
step_wisegovernor is selected by default.
Quoted 6 lines
Quoted 1 line
yep, I like this approach. will apply to my next tree.
That’s great.. Thanks Rui.
In this case, I believe you are taking the v4 of the 15 patches, and this one on top of them.
yep, all of them have been applied to my next branch.
Quoted 5 lines
Meanwhile, I will fix the minor comments on patches 4 and 7 and submit separate patches, hopefully by this week.
Thanks,
Durga
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html