]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: sysfs cpu?/topology is empty in 2.6.25 (32-bit Intel system)
authorVaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Sun, 11 May 2008 04:20:09 +0000 (04:20 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 15 May 2008 14:50:05 +0000 (07:50 -0700)
commitd4b128ea3a055225b248383ad3eb0d6248aaec23
tree7c4976a657e0de31e6a3672a440689e90c83e63d
parent0bd377504a5c62a307159a70320dab55382bf622
x86: sysfs cpu?/topology is empty in 2.6.25 (32-bit Intel system)

commit 5c3a121d52b30a1e53cdaa802fa1965fcd243164 upstream

System topology on intel based system needs to be exported
for non-numa case as well.

All parts of asm-i386/topology.h has come under
#ifdef CONFIG_NUMA after the merge to asm-x86/topology.h

/sys/devices/system/cpu/cpu?/topology/* is populated based on
ENABLE_TOPO_DEFINES

The sysfs cpu topology is not being populated on my dual socket
dual core xeon 5160 processor based (x86 32 bit) system.

CONFIG_NUMA is not set in my case yet the topology is relevant
and useful.

irqbalance daemon application depends on topology to build the
cpus and package list and it fails on Fedora9 beta since the
sysfs topology was not being populated in the 2.6.25 kernel.

I am not sure if it was intentional to not define ENABLE_TOPO_DEFINES
for non-numa systems.

This fix has been tested on the above mentioned dual core, dual socket
system.

Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/asm-x86/topology.h