]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Fix is_core_idle()
authorMika Penttilä <mika.penttila@gmail.com>
Thu, 22 Jul 2021 06:39:46 +0000 (09:39 +0300)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 4 Aug 2021 13:16:43 +0000 (15:16 +0200)
commitf34d52876e71b288ceb40ab4916dae3a1f7d7ec0
treea02c66b96b40ac9ae4b203ad2553933780abed33
parent8b7aaec6c591752028b065c074e4cb454b8a9ba8
sched/numa: Fix is_core_idle()

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

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