aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/topology.h
diff options
context:
space:
mode:
authorAlex Chiang <achiang@hp.com>2008-04-29 18:05:29 -0400
committerTony Luck <tony.luck@intel.com>2008-04-29 18:05:29 -0400
commitfe086a7bea7ab714930bd48addba961ceeef7634 (patch)
tree9595c1876f94a81a19166cc4eeb3fac84a895f5e /include/asm-ia64/topology.h
parent6ff0bc94eee96fe45e5caa338c8b03cb99431fa9 (diff)
[IA64] Provide ACPI fixup for /proc/cpuinfo/physical_id
Legacy HP ia64 platforms currently cannot provide /proc/cpuinfo/physical_id due to legacy SAL/PAL implementations. However, that physical topology information can be obtained via ACPI. Provide an interface that gives ACPI one last chance to provide physical_id for these legacy platforms. This logic only comes into play iff: - ACPI actually provides slot information for the CPU - we lack a valid socket_id Otherwise, we don't do anything. Since x86 uses the ACPI processor driver as well, we provide a nop stub function for arch_fix_phys_package_id() in asm-x86/topology.h Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include/asm-ia64/topology.h')
-rw-r--r--include/asm-ia64/topology.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-ia64/topology.h b/include/asm-ia64/topology.h
index f2f72ef2a897..32863b3bb1d3 100644
--- a/include/asm-ia64/topology.h
+++ b/include/asm-ia64/topology.h
@@ -116,6 +116,8 @@ void build_cpu_to_node_map(void);
116#define smt_capable() (smp_num_siblings > 1) 116#define smt_capable() (smp_num_siblings > 1)
117#endif 117#endif
118 118
119extern void arch_fix_phys_package_id(int num, u32 slot);
120
119#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ 121#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
120 CPU_MASK_ALL : \ 122 CPU_MASK_ALL : \
121 node_to_cpumask(pcibus_to_node(bus)) \ 123 node_to_cpumask(pcibus_to_node(bus)) \