Skip to content
Commit 9ee349ad authored by Xiaotian Feng's avatar Xiaotian Feng Committed by Ingo Molnar
Browse files

sched: Fix set_cpu_active() in cpu_down()



Sachin found cpu hotplug test failures on powerpc, which made
the kernel hang on his POWER box.

The problem is that we fail to re-activate a cpu when a
hot-unplug fails. Fix this by moving the de-activation into
_cpu_down after doing the initial checks.

Remove the synchronize_sched() calls and rely on those implied
by rebuilding the sched domains using the new mask.

Reported-by: default avatarSachin Sant <sachinp@in.ibm.com>
Signed-off-by: default avatarXiaotian Feng <dfeng@redhat.com>
Tested-by: default avatarSachin Sant <sachinp@in.ibm.com>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <20091216170517.500272612@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 933b0618
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment