From: Mika Penttilä <mika.penttila@xxxxxxxxx> is_core_idle() was using a wrong variable in the loop test. Fix it. Signed-off-by: Mika Penttilä <mika.penttila@xxxxxxxxx> --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 44c452072a1b..30a6984a58f7 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1486,7 +1486,7 @@ static inline bool is_core_idle(int cpu) if (cpu == sibling) continue; - if (!idle_cpu(cpu)) + if (!idle_cpu(sibling)) return false; } #endif -- 2.17.1