diff options
author | jkim <jkim@FreeBSD.org> | 2012-04-20 23:39:48 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2012-04-20 23:39:48 +0000 |
commit | eb364ef2c90291c41e896d265d93fe21e48d02a7 (patch) | |
tree | 79677aa8d9d6e5b97246264fe36dcad25ae471a1 /source/components/utilities | |
parent | 1c3442fdc2bf7441ce8d61d4ce8920ce2fdd9c3e (diff) | |
download | FreeBSD-src-eb364ef2c90291c41e896d265d93fe21e48d02a7.zip FreeBSD-src-eb364ef2c90291c41e896d265d93fe21e48d02a7.tar.gz |
Import ACPICA 20120420.
Diffstat (limited to 'source/components/utilities')
-rw-r--r-- | source/components/utilities/utdelete.c | 21 | ||||
-rw-r--r-- | source/components/utilities/utglobal.c | 4 | ||||
-rw-r--r-- | source/components/utilities/uttrack.c | 6 |
3 files changed, 21 insertions, 10 deletions
diff --git a/source/components/utilities/utdelete.c b/source/components/utilities/utdelete.c index 90baa15..fb32611 100644 --- a/source/components/utilities/utdelete.c +++ b/source/components/utilities/utdelete.c @@ -167,7 +167,7 @@ AcpiUtDeleteInternalObj ( case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: - /* Walk the notify handler list for this object */ + /* Walk the address handler list for this object */ HandlerDesc = Object->CommonNotify.Handler; while (HandlerDesc) @@ -523,6 +523,7 @@ AcpiUtUpdateObjectReference ( ACPI_STATUS Status = AE_OK; ACPI_GENERIC_STATE *StateList = NULL; ACPI_OPERAND_OBJECT *NextObject = NULL; + ACPI_OPERAND_OBJECT *PrevObject; ACPI_GENERIC_STATE *State; UINT32 i; @@ -552,10 +553,20 @@ AcpiUtUpdateObjectReference ( case ACPI_TYPE_POWER: case ACPI_TYPE_THERMAL: - /* Update the notify objects for these types (if present) */ - - AcpiUtUpdateRefCount (Object->CommonNotify.SystemNotify, Action); - AcpiUtUpdateRefCount (Object->CommonNotify.DeviceNotify, Action); + /* + * Update the notify objects for these types (if present) + * Two lists, system and device notify handlers. + */ + for (i = 0; i < ACPI_NUM_NOTIFY_TYPES; i++) + { + PrevObject = Object->CommonNotify.NotifyList[i]; + while (PrevObject) + { + NextObject = PrevObject->Notify.Next[i]; + AcpiUtUpdateRefCount (PrevObject, Action); + PrevObject = NextObject; + } + } break; case ACPI_TYPE_PACKAGE: diff --git a/source/components/utilities/utglobal.c b/source/components/utilities/utglobal.c index faccfb2..f913e32 100644 --- a/source/components/utilities/utglobal.c +++ b/source/components/utilities/utglobal.c @@ -287,8 +287,8 @@ AcpiUtInitGlobals ( /* Global handlers */ - AcpiGbl_SystemNotify.Handler = NULL; - AcpiGbl_DeviceNotify.Handler = NULL; + AcpiGbl_GlobalNotify[0].Handler = NULL; + AcpiGbl_GlobalNotify[1].Handler = NULL; AcpiGbl_ExceptionHandler = NULL; AcpiGbl_InitHandler = NULL; AcpiGbl_TableHandler = NULL; diff --git a/source/components/utilities/uttrack.c b/source/components/utilities/uttrack.c index 106cc24..7d58f5c 100644 --- a/source/components/utilities/uttrack.c +++ b/source/components/utilities/uttrack.c @@ -633,21 +633,21 @@ AcpiUtDumpAllocations ( switch (ACPI_GET_DESCRIPTOR_TYPE (Descriptor)) { case ACPI_DESC_TYPE_OPERAND: - if (Element->Size == sizeof (ACPI_DESC_TYPE_OPERAND)) + if (Element->Size == sizeof (ACPI_OPERAND_OBJECT)) { DescriptorType = ACPI_DESC_TYPE_OPERAND; } break; case ACPI_DESC_TYPE_PARSER: - if (Element->Size == sizeof (ACPI_DESC_TYPE_PARSER)) + if (Element->Size == sizeof (ACPI_PARSE_OBJECT)) { DescriptorType = ACPI_DESC_TYPE_PARSER; } break; case ACPI_DESC_TYPE_NAMED: - if (Element->Size == sizeof (ACPI_DESC_TYPE_NAMED)) + if (Element->Size == sizeof (ACPI_NAMESPACE_NODE)) { DescriptorType = ACPI_DESC_TYPE_NAMED; } |