From: Zhang Rui <rui.zhang@intel.com>
To: Durgadoss R <durgadoss.r@intel.com>
Cc: lenb@kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH] Thermal: Provide option to choose default thermal governor
Date: Mon, 24 Sep 2012 13:40:05 +0800 [thread overview]
Message-ID: <1348465205.10877.146.camel@rui.sh.intel.com> (raw)
In-Reply-To: <1348218144-6845-1-git-send-email-durgadoss.r@intel.com>
On 五, 2012-09-21 at 14:32 +0530, Durgadoss R wrote:
> This patch provides option to choose the default thermal
> governor. If no option is provided, the step_wise
> governor is selected by default.
>
yep, I like this approach. will apply to my next tree.
thanks,
rui
> Signed-off-by: Durgadoss R <durgadoss.r@intel.com>
> ---
> drivers/thermal/Kconfig | 33 +++++++++++++++++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
> index 040c626..c0e11aa 100644
> --- a/drivers/thermal/Kconfig
> +++ b/drivers/thermal/Kconfig
> @@ -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
> +
> +
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-09-24 5:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-21 9:02 [PATCH] Thermal: Provide option to choose default thermal governor Durgadoss R
2012-09-24 5:40 ` Zhang Rui [this message]
2012-09-24 6:16 ` R, Durgadoss
2012-09-24 6:57 ` Zhang Rui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1348465205.10877.146.camel@rui.sh.intel.com \
--to=rui.zhang@intel.com \
--cc=durgadoss.r@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).