sched/fair: Add some serialization to the sched_domain load-balance walk
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 24 Apr 2012 22:30:36 +0000 (00:30 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 9 May 2012 13:00:53 +0000 (15:00 +0200)
commit0ce90475dcdbe90affc218e9688c8401e468e84d
tree30771f6a6791af0214c5e7d57958f6395f3b97f5
parentc22402a2f76e88b04b7a8b6c0597ad9ba6fd71de
sched/fair: Add some serialization to the sched_domain load-balance walk

Since the sched_domain walk is completely unserialized (!SD_SERIALIZE)
it is possible that multiple cpus in the group get elected to do the
next level. Avoid this by adding some serialization.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-vqh9ai6s0ewmeakjz80w4qz6@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/sched.h
kernel/sched/core.c
kernel/sched/fair.c