


Commit [f6c3f1] Maximize Restore History

sched: Fix nohz balance kick

There's a situation where the nohz balancer will try to wake itself:

cpu-x is idle which is also ilb_cpu
got a scheduler tick during idle
and the nohz_kick_needed() in trigger_load_balance() checks for
rq_x->nr_running which might not be zero (because of someone waking a
task on this rq etc) and this leads to the situation of the cpu-x
sending a kick to itself.

And this can cause a lockup.

Avoid this by not marking ourself eligible for kicking.

Signed-off-by: Suresh Siddha <>
Signed-off-by: Peter Zijlstra <>
LKML-Reference: <>
Signed-off-by: Ingo Molnar <>

Suresh Siddha Suresh Siddha 2010-09-13

Ingo Molnar Ingo Molnar 2010-09-21

changed kernel/sched_fair.c
kernel/sched_fair.c Diff Switch to side-by-side view