diff options
author | Mario Limonciello <mario.limonciello@amd.com> | 2024-12-07 08:20:04 +0300 |
---|---|---|
committer | Mario Limonciello <mario.limonciello@amd.com> | 2025-03-06 22:01:24 +0300 |
commit | 6f0b13f16f7a214996a8a125080a6a99bda5d1f7 (patch) | |
tree | 6767f07376d1b3ed06e1c96273ee1b1db6f9b239 /scripts/generate_rust_analyzer.py | |
parent | 009d1c29a45194212e9310ccd91a19a673908a5c (diff) | |
download | linux-6f0b13f16f7a214996a8a125080a6a99bda5d1f7.tar.xz |
cpufreq/amd-pstate: Overhaul locking
amd_pstate_cpu_boost_update() and refresh_frequency_limits() both
update the policy state and have nothing to do with the amd-pstate
driver itself.
A global "limits" lock doesn't make sense because each CPU can have
policies changed independently. Each time a CPU changes values they
will atomically be written to the per-CPU perf member. Drop per CPU
locking cases.
The remaining "global" driver lock is used to ensure that only one
entity can change driver modes at a given time.
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions