diff options
| author | Christian Loehle <christian.loehle@arm.com> | 2026-11-05 21:52:22 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-11-06 14:29:03 +0100 |
| commit | a0cde2b601bc32b76d61e50141c619790e5e2e41 (patch) | |
| tree | b8dc12205211e3e1a772b44aee2ff2d8ad9dfa9c /kernel/debug/debug_core.c | |
| parent | 2c0e6f2858d235c99f7ba4621bd176cd67226f00 (diff) | |
cpufreq: Preserve global boost state on failed updates
cpufreq_boost_trigger_state() restores the opposite of the requested
state when updating policy boost state fails. For example, a failed
write of 0 when global boost is already disabled enables the global
flag without enabling any policies.
Save the original global boost state and restore it on failure.
Fixes: 121baab7b88e ("cpufreq: Force sync policy boost with global boost on sysfs update")
Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Reviewed-by: Pengjie Zhang <zhangpengjie2@huawei.com>
Reviewed-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Reviewed-by: Sumit Gupta <sumitg@nvidia.com>
Link: https://patch.msgid.link/20261105215223.1263415-2-christian.loehle@arm.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions
