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

Implement the notion of "core siblings" for powerpc.  This makes
/sys/devices/system/cpu/cpu*/topology/core_siblings present sensible
values, indicating online CPUs which share an L2 cache.

BenH: Made cpu_to_l2cache() use of_find_node_by_phandle() instead
of IBM-specific open coded search

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