Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252760
b: refs/heads/master
c: 3854c8e
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Mar 25, 2011
1 parent 8d0ce80 commit 5018f50
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f63b88bd7a1ac1afbb4358772a39abaeddbdd13
refs/heads/master: 3854c8e32f46ffa6ee0bf2eb01137f5a48b2754f
9 changes: 3 additions & 6 deletions trunk/drivers/acpi/acpica/acglobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,9 @@ ACPI_EXTERN u8 acpi_gbl_global_lock_present;
* Spinlocks are used for interfaces that can be possibly called at
* interrupt level
*/
ACPI_EXTERN spinlock_t _acpi_gbl_gpe_lock; /* For GPE data structs and registers */
ACPI_EXTERN spinlock_t _acpi_gbl_hardware_lock; /* For ACPI H/W except GPE registers */
ACPI_EXTERN spinlock_t _acpi_ev_global_lock_pending_lock; /* For global lock */
#define acpi_gbl_gpe_lock &_acpi_gbl_gpe_lock
#define acpi_gbl_hardware_lock &_acpi_gbl_hardware_lock
#define acpi_ev_global_lock_pending_lock &_acpi_ev_global_lock_pending_lock
ACPI_EXTERN acpi_spinlock acpi_gbl_gpe_lock; /* For GPE data structs and registers */
ACPI_EXTERN acpi_spinlock acpi_gbl_hardware_lock; /* For ACPI H/W except GPE registers */
ACPI_EXTERN acpi_spinlock acpi_ev_global_lock_pending_lock; /* For global lock */

/*****************************************************************************
*
Expand Down
17 changes: 14 additions & 3 deletions trunk/drivers/acpi/acpica/utmutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,20 @@ acpi_status acpi_ut_mutex_initialize(void)

/* Create the spinlocks for use at interrupt level */

spin_lock_init(acpi_gbl_gpe_lock);
spin_lock_init(acpi_gbl_hardware_lock);
spin_lock_init(acpi_ev_global_lock_pending_lock);
status = acpi_os_create_lock (&acpi_gbl_gpe_lock);
if (ACPI_FAILURE (status)) {
return_ACPI_STATUS (status);
}

status = acpi_os_create_lock (&acpi_gbl_hardware_lock);
if (ACPI_FAILURE (status)) {
return_ACPI_STATUS (status);
}

status = acpi_os_create_lock (&acpi_ev_global_lock_pending_lock);
if (ACPI_FAILURE (status)) {
return_ACPI_STATUS (status);
}

/* Mutex for _OSI support */
status = acpi_os_create_mutex(&acpi_gbl_osi_mutex);
Expand Down

0 comments on commit 5018f50

Please sign in to comment.