Lines 406-411
acpi_remove_notify_handler (
Link Here
|
406 |
goto unlock_and_exit; |
406 |
goto unlock_and_exit; |
407 |
} |
407 |
} |
408 |
|
408 |
|
|
|
409 |
/* Make sure all deferred tasks are completed */ |
410 |
|
411 |
(void) acpi_ut_release_mutex (ACPI_MTX_NAMESPACE); |
412 |
acpi_os_wait_events_complete(NULL); |
413 |
status = acpi_ut_acquire_mutex (ACPI_MTX_NAMESPACE); |
414 |
if (ACPI_FAILURE (status)) { |
415 |
return_ACPI_STATUS (status); |
416 |
} |
417 |
|
409 |
if (handler_type == ACPI_SYSTEM_NOTIFY) { |
418 |
if (handler_type == ACPI_SYSTEM_NOTIFY) { |
410 |
acpi_gbl_system_notify.node = NULL; |
419 |
acpi_gbl_system_notify.node = NULL; |
411 |
acpi_gbl_system_notify.handler = NULL; |
420 |
acpi_gbl_system_notify.handler = NULL; |
Lines 452-457
acpi_remove_notify_handler (
Link Here
|
452 |
goto unlock_and_exit; |
461 |
goto unlock_and_exit; |
453 |
} |
462 |
} |
454 |
|
463 |
|
|
|
464 |
/* Make sure all deferred tasks are completed */ |
465 |
|
466 |
(void) acpi_ut_release_mutex (ACPI_MTX_NAMESPACE); |
467 |
acpi_os_wait_events_complete(NULL); |
468 |
status = acpi_ut_acquire_mutex (ACPI_MTX_NAMESPACE); |
469 |
if (ACPI_FAILURE (status)) { |
470 |
return_ACPI_STATUS (status); |
471 |
} |
472 |
|
455 |
/* Remove the handler */ |
473 |
/* Remove the handler */ |
456 |
|
474 |
|
457 |
if (handler_type == ACPI_SYSTEM_NOTIFY) { |
475 |
if (handler_type == ACPI_SYSTEM_NOTIFY) { |
Lines 614-619
acpi_remove_gpe_handler (
Link Here
|
614 |
goto unlock_and_exit; |
632 |
goto unlock_and_exit; |
615 |
} |
633 |
} |
616 |
|
634 |
|
|
|
635 |
/* Make sure all deferred tasks are completed */ |
636 |
|
637 |
(void) acpi_ut_release_mutex (ACPI_MTX_EVENTS); |
638 |
acpi_os_wait_events_complete(NULL); |
639 |
status = acpi_ut_acquire_mutex (ACPI_MTX_EVENTS); |
640 |
if (ACPI_FAILURE (status)) { |
641 |
return_ACPI_STATUS (status); |
642 |
} |
643 |
|
617 |
/* Remove the handler */ |
644 |
/* Remove the handler */ |
618 |
|
645 |
|
619 |
acpi_os_acquire_lock (acpi_gbl_gpe_lock, ACPI_NOT_ISR); |
646 |
acpi_os_acquire_lock (acpi_gbl_gpe_lock, ACPI_NOT_ISR); |