Commit 6f0b13f
committed
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>1 parent 009d1c2 commit 6f0b13f
1 file changed
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
| |||
752 | 751 | | |
753 | 752 | | |
754 | 753 | | |
755 | | - | |
756 | 754 | | |
757 | 755 | | |
758 | 756 | | |
| |||
1170 | 1168 | | |
1171 | 1169 | | |
1172 | 1170 | | |
1173 | | - | |
1174 | | - | |
1175 | 1171 | | |
1176 | 1172 | | |
1177 | 1173 | | |
| |||
1344 | 1340 | | |
1345 | 1341 | | |
1346 | 1342 | | |
1347 | | - | |
| 1343 | + | |
| 1344 | + | |
1348 | 1345 | | |
| 1346 | + | |
1349 | 1347 | | |
1350 | 1348 | | |
1351 | 1349 | | |
| |||
1366 | 1364 | | |
1367 | 1365 | | |
1368 | 1366 | | |
1369 | | - | |
1370 | 1367 | | |
1371 | 1368 | | |
1372 | 1369 | | |
| |||
1638 | 1635 | | |
1639 | 1636 | | |
1640 | 1637 | | |
1641 | | - | |
1642 | | - | |
1643 | 1638 | | |
1644 | 1639 | | |
1645 | 1640 | | |
| |||
1679 | 1674 | | |
1680 | 1675 | | |
1681 | 1676 | | |
1682 | | - | |
1683 | | - | |
1684 | 1677 | | |
1685 | 1678 | | |
1686 | 1679 | | |
| |||
0 commit comments