diff options
author | Lin Ming <ming.m.lin@intel.com> | 2011-03-23 05:26:36 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-03-25 04:33:15 -0400 |
commit | 749c27639b95c5c4a8185e02a4efb189034944ed (patch) | |
tree | bb20d0d20fbc325f676949a4a240beefb9d53f9a /drivers/acpi/acpica/utmutex.c | |
parent | 3854c8e32f46ffa6ee0bf2eb01137f5a48b2754f (diff) |
ACPICA: Fix code divergence of global lock handling
Commit 9cd0314(ACPI / ACPICA: Fix global lock acquisition) was backported
into ACPICA code base, and some divergence was introduced.
This patch fixed it,
- rename acpi_ev_global_lock_pending/acpi_ev_global_lock_pending_lock
to acpi_gbl_global_lock_pending/acpi_gbl_global_lock_pending_lock.
- move the initialization of acpi_gbl_global_lock_pending_lock from
acpi_ut_mutex_initialize to acpi_ev_init_global_lock_handler.
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Reviewed-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utmutex.c')
-rw-r--r-- | drivers/acpi/acpica/utmutex.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/utmutex.c b/drivers/acpi/acpica/utmutex.c index 519d4ee9b45a..7d797e2baecd 100644 --- a/drivers/acpi/acpica/utmutex.c +++ b/drivers/acpi/acpica/utmutex.c | |||
@@ -93,11 +93,6 @@ acpi_status acpi_ut_mutex_initialize(void) | |||
93 | return_ACPI_STATUS (status); | 93 | return_ACPI_STATUS (status); |
94 | } | 94 | } |
95 | 95 | ||
96 | status = acpi_os_create_lock (&acpi_ev_global_lock_pending_lock); | ||
97 | if (ACPI_FAILURE (status)) { | ||
98 | return_ACPI_STATUS (status); | ||
99 | } | ||
100 | |||
101 | /* Mutex for _OSI support */ | 96 | /* Mutex for _OSI support */ |
102 | status = acpi_os_create_mutex(&acpi_gbl_osi_mutex); | 97 | status = acpi_os_create_mutex(&acpi_gbl_osi_mutex); |
103 | if (ACPI_FAILURE(status)) { | 98 | if (ACPI_FAILURE(status)) { |