diff options
author | Lifeng Zheng <zhenglifeng1@huawei.com> | 2025-01-10 12:19:49 +0300 |
---|---|---|
committer | Mario Limonciello <mario.limonciello@amd.com> | 2025-02-03 09:04:23 +0300 |
commit | fa803513ab68ba07369643393f1754b845160030 (patch) | |
tree | 74a10f342df0d309b05002999a6cd40d469778a3 /tools/perf/scripts/python/gecko.py | |
parent | 2014c95afecee3e76ca4a56956a936e23283f05b (diff) | |
download | linux-fa803513ab68ba07369643393f1754b845160030.tar.xz |
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>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20250110091949.3610770-1-zhenglifeng1@huawei.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions