Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46403
b: refs/heads/master
c: 8876016
h: refs/heads/master
i:
  46401: 3ca5817
  46399: a4689ed
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Feb 3, 2007
1 parent 8eec2d5 commit fd7b719
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6823e12ca3f79a8c0f8b2d14976ab2152d117e5
refs/heads/master: 8876016bb384044a59c1e2ddcad4cf41b06344b9
33 changes: 33 additions & 0 deletions trunk/drivers/acpi/events/evmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ static void ACPI_SYSTEM_XFACE acpi_ev_notify_dispatch(void *context);

static u32 acpi_ev_global_lock_handler(void *context);

static acpi_status acpi_ev_remove_global_lock_handler(void);

/*******************************************************************************
*
* FUNCTION: acpi_ev_is_notify_object
Expand Down Expand Up @@ -376,6 +378,31 @@ acpi_status acpi_ev_init_global_lock_handler(void)
return_ACPI_STATUS(status);
}

/*******************************************************************************
*
* FUNCTION: acpi_ev_remove_global_lock_handler
*
* PARAMETERS: None
*
* RETURN: Status
*
* DESCRIPTION: Remove the handler for the Global Lock
*
******************************************************************************/

static acpi_status acpi_ev_remove_global_lock_handler(void)
{
acpi_status status;

ACPI_FUNCTION_TRACE(ev_remove_global_lock_handler);

acpi_gbl_global_lock_present = FALSE;
status = acpi_remove_fixed_event_handler(ACPI_EVENT_GLOBAL,
acpi_ev_global_lock_handler);

return_ACPI_STATUS(status);
}

/******************************************************************************
*
* FUNCTION: acpi_ev_acquire_global_lock
Expand Down Expand Up @@ -554,6 +581,12 @@ void acpi_ev_terminate(void)
if (ACPI_FAILURE(status)) {
ACPI_ERROR((AE_INFO, "Could not remove SCI handler"));
}

status = acpi_ev_remove_global_lock_handler();
if (ACPI_FAILURE(status)) {
ACPI_ERROR((AE_INFO,
"Could not remove Global Lock handler"));
}
}

/* Deallocate all handler objects installed within GPE info structs */
Expand Down

0 comments on commit fd7b719

Please sign in to comment.