Author: cgutman
Date: Sat Aug 27 23:58:45 2011
New Revision: 53478
URL:
http://svn.reactos.org/svn/reactos?rev=53478&view=rev
Log:
[ACPI]
- Report a unique instance ID that can be used to identify different processors
- Device Manager now displays one processor device per CPU
Modified:
trunk/reactos/drivers/bus/acpi/busmgr/bus.c
Modified: trunk/reactos/drivers/bus/acpi/busmgr/bus.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/busmgr/bu…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/busmgr/bus.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/busmgr/bus.c [iso-8859-1] Sat Aug 27 23:58:45 2011
@@ -60,6 +60,7 @@
KEVENT AcpiEventQueue;
KDPC event_dpc;
+int ProcessorCount;
static int
acpi_device_register (
@@ -1145,6 +1146,7 @@
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 @@
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;