]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/acpi/events/evmisc.c
Revert "Execute AML Notify() requests on stack."
[linux-2.6.git] / drivers / acpi / events / evmisc.c
index 3a799b9b5df572da85d5bba7573bd798f1b0a9d0..ad447b1d97a3da52e7684def67d91a724ff3f2f2 100644 (file)
@@ -196,11 +196,12 @@ acpi_ev_queue_notify_request(struct acpi_namespace_node * node,
                notify_info->notify.value = (u16) notify_value;
                notify_info->notify.handler_obj = handler_obj;
 
-               acpi_ex_relinquish_interpreter();
-
-               acpi_ev_notify_dispatch(notify_info);
-
-               acpi_ex_reacquire_interpreter();
+               status =
+                   acpi_os_execute(OSL_NOTIFY_HANDLER, acpi_ev_notify_dispatch,
+                                   notify_info);
+               if (ACPI_FAILURE(status)) {
+                       acpi_ut_delete_generic_state(notify_info);
+               }
        }
 
        if (!handler_obj) {