|
@@ -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);
|