diff options
author | Myron Stowe <myron.stowe@hp.com> | 2008-11-04 16:52:55 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-11-06 20:11:15 -0500 |
commit | ad93a765c1834db031b5bf1c2baf2a50d0462ca4 (patch) | |
tree | 4494d6814fd2d51a243794b4616f869b34a1b6bc | |
parent | 457d2ee225801441e96f2e35894ec404572ad862 (diff) |
ACPI: Disambiguate processor declaration type
Declaring processors in ACPI namespace can be done using either a
"Processor" definition or a "Device" definition (see section 8.4 -
Declaring Processors; "Advanced Configuration and Power Interface
Specification", Revision 3.0b). Currently the two processor
declaration types are conflated.
This patch disambiguates the processor declaration's definition type
enabling subsequent code to behave uniquely based explicitly on the
declaration's type.
Signed-off-by: Myron Stowe <myron.stowe@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | drivers/acpi/processor_core.c | 1 | ||||
-rw-r--r-- | drivers/acpi/scan.c | 2 | ||||
-rw-r--r-- | include/acpi/acpi_drivers.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 24a362f8034c..0c670dd297d7 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -89,6 +89,7 @@ static int acpi_processor_handle_eject(struct acpi_processor *pr); | |||
89 | 89 | ||
90 | 90 | ||
91 | static const struct acpi_device_id processor_device_ids[] = { | 91 | static const struct acpi_device_id processor_device_ids[] = { |
92 | {ACPI_PROCESSOR_OBJECT_HID, 0}, | ||
92 | {ACPI_PROCESSOR_HID, 0}, | 93 | {ACPI_PROCESSOR_HID, 0}, |
93 | {"", 0}, | 94 | {"", 0}, |
94 | }; | 95 | }; |
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index a9dda8e0f9f9..3fb6e2db585a 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -1043,7 +1043,7 @@ static void acpi_device_set_id(struct acpi_device *device, | |||
1043 | hid = ACPI_POWER_HID; | 1043 | hid = ACPI_POWER_HID; |
1044 | break; | 1044 | break; |
1045 | case ACPI_BUS_TYPE_PROCESSOR: | 1045 | case ACPI_BUS_TYPE_PROCESSOR: |
1046 | hid = ACPI_PROCESSOR_HID; | 1046 | hid = ACPI_PROCESSOR_OBJECT_HID; |
1047 | break; | 1047 | break; |
1048 | case ACPI_BUS_TYPE_SYSTEM: | 1048 | case ACPI_BUS_TYPE_SYSTEM: |
1049 | hid = ACPI_SYSTEM_HID; | 1049 | hid = ACPI_SYSTEM_HID; |
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index cf04c6011c2a..7469ff397633 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -41,6 +41,7 @@ | |||
41 | */ | 41 | */ |
42 | 42 | ||
43 | #define ACPI_POWER_HID "LNXPOWER" | 43 | #define ACPI_POWER_HID "LNXPOWER" |
44 | #define ACPI_PROCESSOR_OBJECT_HID "ACPI_CPU" | ||
44 | #define ACPI_PROCESSOR_HID "ACPI0007" | 45 | #define ACPI_PROCESSOR_HID "ACPI0007" |
45 | #define ACPI_SYSTEM_HID "LNXSYSTM" | 46 | #define ACPI_SYSTEM_HID "LNXSYSTM" |
46 | #define ACPI_THERMAL_HID "LNXTHERM" | 47 | #define ACPI_THERMAL_HID "LNXTHERM" |