aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2022-03-17 15:51:32 +0100
committerPeter Zijlstra <[email protected]>2022-04-05 09:59:36 +0200
commit386ef214c3c6ab111d05e1790e79475363abaa05 (patch)
treec7711dcc2ec725393daf8ff5bae52b3b65712266 /tools/perf/scripts/python
parent5b6547ed97f4f5dfc23f8e3970af6d11d7b7ed7e (diff)
sched: Teach the forced-newidle balancer about CPU affinity limitation.
try_steal_cookie() looks at task_struct::cpus_mask to decide if the task could be moved to `this' CPU. It ignores that the task might be in a migration disabled section while not on the CPU. In this case the task must not be moved otherwise per-CPU assumption are broken. Use is_cpu_allowed(), as suggested by Peter Zijlstra, to decide if the a task can be moved. Fixes: d2dfa17bc7de6 ("sched: Trivial forced-newidle balancer") Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions