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)
commit316ad248307fba13be40f01e92a22b89457c32bc
tree8c775a149310e267993648021f80a3b3c2fd8c44
parentdd7d8634e619b715a537402672d1383535ff4c54
sched/x86: Rewrite set_cpu_sibling_map()

Commit ad7687dde ("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