Linux Documentation
 help / color / mirror / Atom feed
From: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
To: Pengjie Zhang <zhangpengjie2@huawei.com>,
	rafael@kernel.org, viresh.kumar@linaro.org, corbet@lwn.net
Cc: skhan@linuxfoundation.org, linux-pm@vger.kernel.org,
	linux-doc@vger.kernel.org, zhanjie9@hisilicon.com,
	zhenglifeng1@huawei.com, lihuisong@huawei.com,
	yubowen8@huawei.com, linhongye@h-partners.com,
	linuxarm@huawei.com, wangzhi12@huawei.com,
	zhongqiu.han@oss.qualcomm.com
Subject: Re: [PATCH] cpufreq: Documentation: fix sampling_down_factor documentation range
Date: Sun, 17 May 2026 13:04:09 +0800	[thread overview]
Message-ID: <05980ed2-e591-468c-a528-5b2b74c192d8@oss.qualcomm.com> (raw)
In-Reply-To: <20260515094930.273599-1-zhangpengjie2@huawei.com>

On 5/15/2026 5:49 PM, Pengjie Zhang wrote:
> The ondemand governor implementation accepts sampling_down_factor values
> from 1 to 100000 via MAX_SAMPLING_DOWN_FACTOR, but the documentation in
> admin-guide/pm/cpufreq.rst still says the valid range is 1 to 100.
> 
> Update the documentation to match the actual code.
> 
> Fixes: 2a0e49279850 ("cpufreq: User/admin documentation update and consolidation")


Thanks Pengjie,

Yes, commit 3f78a9f7fcee introduced MAX_SAMPLING_DOWN_FACTOR (100000),
and commit 2a0e49279850 updated the documentation later, so the Fixes
tag is correct.

Small nit: "documentation range" feels a bit redundant; just "range"
might be enough.

Looks good to me.

Reviewed-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>


> Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com>
> ---
>   Documentation/admin-guide/pm/cpufreq.rst | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/admin-guide/pm/cpufreq.rst b/Documentation/admin-guide/pm/cpufreq.rst
> index dbe6d23a5d67..fdca59c955dc 100644
> --- a/Documentation/admin-guide/pm/cpufreq.rst
> +++ b/Documentation/admin-guide/pm/cpufreq.rst
> @@ -516,7 +516,7 @@ This governor exposes the following tunables:
>   	of those tasks above 0 and set this attribute to 1.
>   
>   ``sampling_down_factor``
> -	Temporary multiplier, between 1 (default) and 100 inclusive, to apply to
> +	Temporary multiplier, between 1 (default) and 100000 inclusive, to apply to
>   	the ``sampling_rate`` value if the CPU load goes above ``up_threshold``.
>   
>   	This causes the next execution of the governor's worker routine (after


-- 
Thx and BRs,
Zhongqiu Han

  reply	other threads:[~2026-05-17  5:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-15  9:49 [PATCH] cpufreq: Documentation: fix sampling_down_factor documentation range Pengjie Zhang
2026-05-17  5:04 ` Zhongqiu Han [this message]
2026-05-18 13:12   ` zhangpengjie (A)

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=05980ed2-e591-468c-a528-5b2b74c192d8@oss.qualcomm.com \
    --to=zhongqiu.han@oss.qualcomm.com \
    --cc=corbet@lwn.net \
    --cc=lihuisong@huawei.com \
    --cc=linhongye@h-partners.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=rafael@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=viresh.kumar@linaro.org \
    --cc=wangzhi12@huawei.com \
    --cc=yubowen8@huawei.com \
    --cc=zhangpengjie2@huawei.com \
    --cc=zhanjie9@hisilicon.com \
    --cc=zhenglifeng1@huawei.com \
    /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