Skip to contentSkip to conversation

ACPI: processor: remove unnecessary string _UID comments

PATCH Applied Alex Hung 2 participants 2 messages Oct 14, 2020 – Oct 16, 2020 ACPI

lore
Share & tools
lore

Alex Hung

author
#0 lore raw

PATCH 1/1 ACPI: processor: remove unnecessary string _UID comments

ACPI 6.3 Errata A no longer allows _UID to be string except Itanium for historical reasons as stated in section 5.2.12. Therefore, it is redundant to comment "we don't handle string _UIDs yet" which implies a feature is missing.

"From ACPI Specification 6.3 onward, all processor objects for all architectures except Itanium must now use Device() objects with an _HID of ACPI0007, and use only integer _UID values."

---
 drivers/acpi/acpi_processor.c | 1 -
 1 file changed, 1 deletion(-)
drivers/acpi/acpi_processor.c +0 -1
index b51ddf3..710605f 100644
@@ -264,7 +264,6 @@ static int acpi_processor_get_info(struct acpi_device *device)
 	} else {
 		/*
 		 * Declared with "Device" statement; match _UID.
-		 * Note that we don't handle string _UIDs yet.
 		 */
 		status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID,
 						NULL, &value);
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 20 lines · Alex Hung

ACPI 6.3 Errata A no longer allows _UID to be string except Itanium for historical reasons as stated in section 5.2.12. Therefore, it is redundant to comment "we don't handle string _UIDs yet" which implies a feature is missing.

"From ACPI Specification 6.3 onward, all processor objects for all architectures except Itanium must now use Device() objects with an _HID of ACPI0007, and use only integer _UID values."

---
 drivers/acpi/acpi_processor.c | 1 -
 1 file changed, 1 deletion(-)
drivers/acpi/acpi_processor.c +0 -0
index b51ddf3..710605f 100644

drivers/acpi/acpi_processor.c static int acpi_processor_get_info(struct acpi_device *device)

Quoted 8 lines
drivers/acpi/acpi_processor.c +0 -2
@@ -264,7 +264,6 @@ static int acpi_processor_get_info(struct acpi_device *device)
        } else {
                /*
                 * Declared with "Device" statement; match _UID.
-                * Note that we don't handle string _UIDs yet.
                 */
                status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID,
                                                NULL, &value);
--

Applied as 5.10-rc material with edited changelog and subject, thanks!