[PATCH v2 0/2] cpufreq: Return -EOPNOTSUPP if no policy is boost supported

From: Lifeng Zheng

Date: Fri Nov 28 2025 - 04:14:13 EST


Make cpufreq_boost_trigger_state() return error when boost isn't supported
by any policy.

Changelog:

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@xxxxxxxxxx/

Lifeng Zheng (2):
cpufreq: Return -EOPNOTSUPP if no policy is boost supported
cpufreq: cpufreq_boost_trigger_state() optimization

drivers/cpufreq/cpufreq.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)

--
2.33.0