mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[ACPI]
- Report a unique instance ID that can be used to identify different processors - Device Manager now displays one processor device per CPU svn path=/trunk/; revision=53478
This commit is contained in:
parent
abf9566c79
commit
c96c07424b
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,7 @@ LIST_HEAD(acpi_bus_event_list);
|
|||
KEVENT AcpiEventQueue;
|
||||
KDPC event_dpc;
|
||||
|
||||
int ProcessorCount;
|
||||
|
||||
static int
|
||||
acpi_device_register (
|
||||
|
@ -1145,6 +1146,7 @@ acpi_bus_add (
|
|||
char *uid = NULL;
|
||||
ACPI_DEVICE_ID_LIST *cid_list = NULL;
|
||||
int i = 0;
|
||||
char processor_uid[5];
|
||||
|
||||
if (!child)
|
||||
return_VALUE(AE_BAD_PARAMETER);
|
||||
|
@ -1272,6 +1274,8 @@ acpi_bus_add (
|
|||
break;
|
||||
case ACPI_BUS_TYPE_PROCESSOR:
|
||||
hid = ACPI_PROCESSOR_HID;
|
||||
uid = processor_uid;
|
||||
sprintf(uid, "%d", (ProcessorCount++));
|
||||
break;
|
||||
case ACPI_BUS_TYPE_SYSTEM:
|
||||
hid = ACPI_SYSTEM_HID;
|
||||
|
|
Loading…
Reference in a new issue