diff options
Diffstat (limited to 'include/acpi/acpiosxf.h')
-rw-r--r-- | include/acpi/acpiosxf.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/acpi/acpiosxf.h b/include/acpi/acpiosxf.h index b91440ac0d16..a62720a7edc0 100644 --- a/include/acpi/acpiosxf.h +++ b/include/acpi/acpiosxf.h | |||
@@ -121,8 +121,11 @@ acpi_os_wait_semaphore(acpi_semaphore handle, u32 units, u16 timeout); | |||
121 | acpi_status acpi_os_signal_semaphore(acpi_semaphore handle, u32 units); | 121 | acpi_status acpi_os_signal_semaphore(acpi_semaphore handle, u32 units); |
122 | 122 | ||
123 | /* | 123 | /* |
124 | * Mutex primitives | 124 | * Mutex primitives. May be configured to use semaphores instead via |
125 | * ACPI_MUTEX_TYPE (see platform/acenv.h) | ||
125 | */ | 126 | */ |
127 | #if (ACPI_MUTEX_TYPE != ACPI_BINARY_SEMAPHORE) | ||
128 | |||
126 | acpi_status acpi_os_create_mutex(acpi_mutex * out_handle); | 129 | acpi_status acpi_os_create_mutex(acpi_mutex * out_handle); |
127 | 130 | ||
128 | void acpi_os_delete_mutex(acpi_mutex handle); | 131 | void acpi_os_delete_mutex(acpi_mutex handle); |
@@ -130,13 +133,7 @@ void acpi_os_delete_mutex(acpi_mutex handle); | |||
130 | acpi_status acpi_os_acquire_mutex(acpi_mutex handle, u16 timeout); | 133 | acpi_status acpi_os_acquire_mutex(acpi_mutex handle, u16 timeout); |
131 | 134 | ||
132 | void acpi_os_release_mutex(acpi_mutex handle); | 135 | void acpi_os_release_mutex(acpi_mutex handle); |
133 | 136 | #endif | |
134 | /* Temporary macros for Mutex* interfaces, map to existing semaphore xfaces */ | ||
135 | |||
136 | #define acpi_os_create_mutex(out_handle) acpi_os_create_semaphore (1, 1, out_handle) | ||
137 | #define acpi_os_delete_mutex(handle) (void) acpi_os_delete_semaphore (handle) | ||
138 | #define acpi_os_acquire_mutex(handle,time) acpi_os_wait_semaphore (handle, 1, time) | ||
139 | #define acpi_os_release_mutex(handle) (void) acpi_os_signal_semaphore (handle, 1) | ||
140 | 137 | ||
141 | /* | 138 | /* |
142 | * Memory allocation and mapping | 139 | * Memory allocation and mapping |