sched/numa: Fix is_core_idle()
authorMika Penttilä <mika.penttila@gmail.com>
Thu, 22 Jul 2021 06:39:46 +0000 (09:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:28 +0000 (09:50 +0200)
commit718180c24675e02f090d0d7351ad022fea0c4cea
tree8d3ada7d7f2fcbca2a345f74289e967959c36239
parentbf4b0fa3a2e270f2f093b93a75ab22fff0649435
sched/numa: Fix is_core_idle()

[ Upstream commit 1c6829cfd3d5124b125e6df41158665aea413b35 ]

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

Fixes: ff7db0bf24db ("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>
kernel/sched/fair.c