diff options
author | Alex Chiang <achiang@hp.com> | 2008-04-29 18:05:29 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-04-29 18:05:29 -0400 |
commit | fe086a7bea7ab714930bd48addba961ceeef7634 (patch) | |
tree | 9595c1876f94a81a19166cc4eeb3fac84a895f5e /include/asm-x86 | |
parent | 6ff0bc94eee96fe45e5caa338c8b03cb99431fa9 (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-x86')
-rw-r--r-- | include/asm-x86/topology.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-x86/topology.h b/include/asm-x86/topology.h index 0e6d6b03affe..4f35a0fb4f22 100644 --- a/include/asm-x86/topology.h +++ b/include/asm-x86/topology.h | |||
@@ -193,6 +193,10 @@ extern cpumask_t cpu_coregroup_map(int cpu); | |||
193 | #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu)) | 193 | #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu)) |
194 | #endif | 194 | #endif |
195 | 195 | ||
196 | static inline void arch_fix_phys_package_id(int num, u32 slot) | ||
197 | { | ||
198 | } | ||
199 | |||
196 | struct pci_bus; | 200 | struct pci_bus; |
197 | void set_pci_bus_resources_arch_default(struct pci_bus *b); | 201 | void set_pci_bus_resources_arch_default(struct pci_bus *b); |
198 | 202 | ||