Skip to content
Snippets Groups Projects
Commit 718180c2 authored by Mika Penttilä's avatar Mika Penttilä Committed by Greg Kroah-Hartman
Browse files

sched/numa: Fix is_core_idle()


[ Upstream commit 1c6829cf ]

Use the loop variable instead of the function argument to test the
other SMT siblings for idle.

Fixes: ff7db0bf ("sched/numa: Prefer using an idle CPU as a migration target instead of comparing tasks")
Signed-off-by: default avatarMika Penttilä <mika.penttila@gmail.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarMel Gorman <mgorman@techsingularity.net>
Acked-by: default avatarPankaj Gupta <pankaj.gupta@ionos.com>
Link: https://lkml.kernel.org/r/20210722063946.28951-1-mika.penttila@gmail.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bf4b0fa3
No related branches found
No related tags found
1 merge request!15.10.61 -> 5.10.152 upgrade
......@@ -1533,7 +1533,7 @@ static inline bool is_core_idle(int cpu)
if (cpu == sibling)
continue;
if (!idle_cpu(cpu))
if (!idle_cpu(sibling))
return false;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment