]> 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)
commite15715a828e02e8034d5c84878f1438754774c87
tree8c775a149310e267993648021f80a3b3c2fd8c44
parentca06362763b0a6e517c332ae74ba7932b9860013
sched/x86: Rewrite set_cpu_sibling_map()

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