]> err.no Git - linux-2.6/commit
powerpc: Make core id information available to userspace
authorNathan Lynch <ntl@pobox.com>
Sun, 27 Jul 2008 05:24:54 +0000 (15:24 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 28 Jul 2008 06:30:52 +0000 (16:30 +1000)
commite9efed3b80a83e44b98fc626f3268ae072550b84
treecbe7cc897dc112e2eb93f9bbded5aa3a8e6e0bf3
parent440a0857e32a05979fb01fc59ea454a723e80e4b
powerpc: Make core id information available to userspace

Existing Open Firmware practice is to report each processor core as a
separate node in the device tree.  Report the value of the "reg" OF
property corresponding to a logical CPU's device node as the core_id
attribute in /sys/devices/system/cpu/cpu*/topology/core_id.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/smp.c
include/asm-powerpc/smp.h
include/asm-powerpc/topology.h