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 /drivers | |
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 'drivers')
-rw-r--r-- | drivers/acpi/processor_core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index dd28c912e84f..5241e3ff5080 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -603,6 +603,15 @@ static int acpi_processor_get_info(struct acpi_processor *pr, unsigned has_uid) | |||
603 | request_region(pr->throttling.address, 6, "ACPI CPU throttle"); | 603 | request_region(pr->throttling.address, 6, "ACPI CPU throttle"); |
604 | } | 604 | } |
605 | 605 | ||
606 | /* | ||
607 | * If ACPI describes a slot number for this CPU, we can use it | ||
608 | * ensure we get the right value in the "physical id" field | ||
609 | * of /proc/cpuinfo | ||
610 | */ | ||
611 | status = acpi_evaluate_object(pr->handle, "_SUN", NULL, &buffer); | ||
612 | if (ACPI_SUCCESS(status)) | ||
613 | arch_fix_phys_package_id(pr->id, object.integer.value); | ||
614 | |||
606 | return 0; | 615 | return 0; |
607 | } | 616 | } |
608 | 617 | ||