diff options
| author | Liao Chang <[email protected]> | 2023-08-26 09:57:43 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2023-08-29 18:41:29 +0000 |
| commit | 4c2fdf7393647a7b01a83f49c4a331d562016640 (patch) | |
| tree | cedfea0660e686d0049467d67d8f4fb5ec9e01ae /tools/perf/scripts/python/sched-migration.py | |
| parent | cpufreq: governor: Free dbs_data directly when gov->init() fails (diff) | |
| download | kernel-4c2fdf7393647a7b01a83f49c4a331d562016640.tar.gz kernel-4c2fdf7393647a7b01a83f49c4a331d562016640.zip | |
cpufreq: pcc: Fix the potentinal scheduling delays in target_index()
pcc_cpufreq_target():
cpufreq_freq_transition_begin();
spin_lock(&pcc_lock);
[critical section]
cpufreq_freq_transition_end();
spin_unlock(&pcc_lock);
Above code has a performance issue, consider that Task0 executes
'cpufreq_freq_transition_end()' to wake Task1 and preempted imediatedly
without releasing 'pcc_lock', then Task1 needs to wait for Task0 to
release 'pcc_lock'. In the worst case, this locking order can result in
Task1 wasting two scheduling rounds before it can enter the critical
section.
Signed-off-by: Liao Chang <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions
