[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251202072727.1368285-1-zhenglifeng1@huawei.com>
Date: Tue, 2 Dec 2025 15:27:25 +0800
From: Lifeng Zheng <zhenglifeng1@...wei.com>
To: <rafael@...nel.org>, <viresh.kumar@...aro.org>
CC: <linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linuxarm@...wei.com>, <jonathan.cameron@...wei.com>,
<zhanjie9@...ilicon.com>, <lihuisong@...wei.com>, <yubowen8@...wei.com>,
<zhangpengjie2@...wei.com>, <wangzhi12@...wei.com>,
<linhongye@...artners.com>, <zhenglifeng1@...wei.com>
Subject: [PATCH v3 0/2] cpufreq: Return -EOPNOTSUPP if no policy is boost supported
Make cpufreq_boost_trigger_state() return error when boost isn't supported
by any policy.
Changelog:
v3:
- add `likely` and `unlikely` to if conditions in
cpufreq_boost_trigger_state()
v2:
- change the error to -EOPNOTSUPP
- remove the comment and blank line
- split the optimization into another patch
---
Discussions of previous version:
v1: https://lore.kernel.org/all/20251126031916.3641176-1-zhenglifeng1@huawei.com/
v2: https://lore.kernel.org/all/20251128091352.1969333-1-zhenglifeng1@huawei.com/
Lifeng Zheng (2):
cpufreq: Return -EOPNOTSUPP if no policy is boost supported
cpufreq: cpufreq_boost_trigger_state() optimization
drivers/cpufreq/cpufreq.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
--
2.33.0
Powered by blists - more mailing lists