diff options
author | Nathan Lynch <ntl@pobox.com> | 2008-07-27 15:24:53 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-28 16:30:51 +1000 |
commit | 440a0857e32a05979fb01fc59ea454a723e80e4b (patch) | |
tree | 9776655cd83b18cdd9cc8f08b836a6811f77ced0 /include/asm-powerpc/topology.h | |
parent | 0764bf63da5466474eebf7d21994cf6b106265a3 (diff) | |
download | kernel_goldelico_gta04-440a0857e32a05979fb01fc59ea454a723e80e4b.zip kernel_goldelico_gta04-440a0857e32a05979fb01fc59ea454a723e80e4b.tar.gz kernel_goldelico_gta04-440a0857e32a05979fb01fc59ea454a723e80e4b.tar.bz2 |
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>
Diffstat (limited to 'include/asm-powerpc/topology.h')
-rw-r--r-- | include/asm-powerpc/topology.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h index 100c6fb..f00e8e5 100644 --- a/include/asm-powerpc/topology.h +++ b/include/asm-powerpc/topology.h @@ -108,6 +108,7 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev, #include <asm/smp.h> #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu)) +#define topology_core_siblings(cpu) (per_cpu(cpu_core_map, cpu)) #endif #endif |