mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
sched/numa: Fix is_core_idle()
[ Upstream commit1c6829cfd3] Use the loop variable instead of the function argument to test the other SMT siblings for idle. Fixes:ff7db0bf24("sched/numa: Prefer using an idle CPU as a migration target instead of comparing tasks") Signed-off-by: Mika Penttilä <mika.penttila@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Mel Gorman <mgorman@techsingularity.net> Acked-by: Pankaj Gupta <pankaj.gupta@ionos.com> Link: https://lkml.kernel.org/r/20210722063946.28951-1-mika.penttila@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bf4b0fa3a2
commit
718180c246
|
|
@ -1533,7 +1533,7 @@ static inline bool is_core_idle(int cpu)
|
||||||
if (cpu == sibling)
|
if (cpu == sibling)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!idle_cpu(cpu))
|
if (!idle_cpu(sibling))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user