cpufreq/amd-pstate: Fix per-policy boost flag incorrect when failamd-pstate-6.13
commitc77a5d1cc3a4e33127363f29e18dee93c113b22f
authorLifeng Zheng <zhenglifeng1@huawei.com>
Fri, 10 Jan 2025 09:19:49 +0000 (10 17:19 +0800)
committerOleksandr Natalenko <oleksandr@natalenko.name>
Mon, 20 Jan 2025 15:47:14 +0000 (20 16:47 +0100)
treecacb12a235ca1687e3fca1e7514cc300d0a6b5f4
parentf48d4b86ba49bd168b19a92080006fa5ee5b5334
cpufreq/amd-pstate: Fix per-policy boost flag incorrect when fail

Commit c8c68c38b56f ("cpufreq: amd-pstate: initialize core precision
boost state") sets per-policy boost flag to false when boost fail.
However, this boost flag will be set to reverse value in
store_local_boost() and cpufreq_boost_trigger_state() in cpufreq.c. This
will cause the per-policy boost flag set to true when fail to set boost.
Remove the extra assignment in amd_pstate_set_boost() and keep all
operations on per-policy boost flag outside of set_boost() to fix this
problem.

Fixes: c8c68c38b56f ("cpufreq: amd-pstate: initialize core precision boost state")
Signed-off-by: Lifeng Zheng <zhenglifeng1@huawei.com>
drivers/cpufreq/amd-pstate.c