From: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
To: Pengjie Zhang <zhangpengjie2@huawei.com>,
rafael@kernel.org, viresh.kumar@linaro.org, corbet@lwn.net,
skhan@linuxfoundation.org
Cc: linux-pm@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, linuxarm@huawei.com,
zhanjie9@hisilicon.com, prime.zeng@hisilicon.com,
wanghuiqiang@huawei.com, xuwei5@huawei.com, lihuisong@huawei.com,
zhenglifeng1@huawei.com, yubowen8@huawei.com,
wangzhi12@huawei.com, zhongqiu.han@oss.qualcomm.com
Subject: Re: [PATCH v2] cpufreq: Documentation: fix freq_step description
Date: Wed, 3 Jun 2026 21:31:50 +0800 [thread overview]
Message-ID: <210cefc5-c9f2-49e2-b2f6-2a3c1a42218a@oss.qualcomm.com> (raw)
In-Reply-To: <20260603055635.1549943-1-zhangpengjie2@huawei.com>
On 6/3/2026 1:56 PM, Pengjie Zhang wrote:
> The conservative governor documentation incorrectly states that setting
> freq_step to 0 will use the default 5% frequency step. In reality, since
> at least commit 8e677ce83bf4 ("[CPUFREQ] conservative: fixup governor to
> function more like ondemand logic"), freq_step=0 has always caused the
> governor to skip frequency updates entirely.
>
> Correct the documentation to reflect the actual behavior: freq_step=0
> disables frequency changes by the governor entirely.
>
> Fixes: 2a0e49279850 ("cpufreq: User/admin documentation update and consolidation")
> Signed-off-by: Pengjie Zhang <zhangpengjie2@huawei.com>
> ---
> Changes in v2:
> - Update commit message to reference the correct historical commit
> 8e677ce83bf4 instead of b9170836d1aa, as the original implementation
> had asymmetric behavior for freq_step=0 (suggested by Zhongqiu Han).
> - Link to v1:https://lore.kernel.org/all/20260529111122.3321645-1-zhangpengjie2@huawei.com/
Looks good to me.
Reviewed-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
> ---
> Documentation/admin-guide/pm/cpufreq.rst | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/admin-guide/pm/cpufreq.rst b/Documentation/admin-guide/pm/cpufreq.rst
> index dbe6d23a5d67..98c724d49047 100644
> --- a/Documentation/admin-guide/pm/cpufreq.rst
> +++ b/Documentation/admin-guide/pm/cpufreq.rst
> @@ -586,8 +586,8 @@ This governor exposes the following tunables:
> 100 (5 by default).
>
> This is how much the frequency is allowed to change in one go. Setting
> - it to 0 will cause the default frequency step (5 percent) to be used
> - and setting it to 100 effectively causes the governor to periodically
> + it to 0 disables frequency changes by the governor entirely and setting
> + it to 100 effectively causes the governor to periodically
> switch the frequency between the ``scaling_min_freq`` and
> ``scaling_max_freq`` policy limits.
>
--
Thx and BRs,
Zhongqiu Han
next prev parent reply other threads:[~2026-06-03 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-03 5:56 [PATCH v2] cpufreq: Documentation: fix freq_step description Pengjie Zhang
2026-06-03 13:31 ` Zhongqiu Han [this message]
2026-06-08 13:34 ` Rafael J. Wysocki
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=210cefc5-c9f2-49e2-b2f6-2a3c1a42218a@oss.qualcomm.com \
--to=zhongqiu.han@oss.qualcomm.com \
--cc=corbet@lwn.net \
--cc=lihuisong@huawei.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=prime.zeng@hisilicon.com \
--cc=rafael@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=viresh.kumar@linaro.org \
--cc=wanghuiqiang@huawei.com \
--cc=wangzhi12@huawei.com \
--cc=xuwei5@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