]> git.baikalelectronics.ru Git - kernel.git/commit
sched/x86: Rewrite set_cpu_sibling_map()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 11 May 2012 11:05:59 +0000 (13:05 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 May 2012 13:05:25 +0000 (15:05 +0200)
commit96e494bd3ead22d5fe668011fa92f2fe2b512cb8
tree8c775a149310e267993648021f80a3b3c2fd8c44
parent231580edd6c5864721e0a3b51c9214f1097700b3
sched/x86: Rewrite set_cpu_sibling_map()

Commit 3f2880bf1 ("x86/numa: Check for nonsensical topologies on real
hw as well") is broken in that the condition can trigger for valid
setups but only changes the end result for invalid setups with no real
means of discerning between those.

Rewrite set_cpu_sibling_map() to make the code clearer and make sure
to only warn when the check changes the end result.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-klcwahu3gx467uhfiqjyhdcs@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/smpboot.c