[PATCH v3 0/2] cpufreq: Return -EOPNOTSUPP if no policy is boost supported
From: Lifeng Zheng
Date: Tue Dec 02 2025 - 02:28:16 EST
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@xxxxxxxxxx/
v2: https://lore.kernel.org/all/20251128091352.1969333-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 | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
--
2.33.0