s390/topology: cleanup topology code
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 12 Nov 2012 09:03:25 +0000 (10:03 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 23 Nov 2012 10:14:31 +0000 (11:14 +0100)
commitd1e57508fbd63b340788afe6f2c74a608603e714
treea4f32399d06ea644f3a6cb6f02b87ad9082b3bb6
parent0a4ccc992978ef552dc86ac68bc1ec62cf268e2a
s390/topology: cleanup topology code

Mainly merge all different per-cpu arrays into a single array which
holds all topology information per logical cpu.
Also fix the broken core vs socket variable naming and simplify the
locking a bit.
When running in environments without topology information also
invent book, socket and core ids, so that not all ids are zero.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/topology.h
arch/s390/kernel/topology.c