diff options
Diffstat (limited to 'drivers/acpi/events/evmisc.c')
-rw-r--r-- | drivers/acpi/events/evmisc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/events/evmisc.c b/drivers/acpi/events/evmisc.c index 0909ba69577e..334407239f2f 100644 --- a/drivers/acpi/events/evmisc.c +++ b/drivers/acpi/events/evmisc.c | |||
@@ -150,6 +150,7 @@ acpi_ev_queue_notify_request(struct acpi_namespace_node * node, | |||
150 | 150 | ||
151 | obj_desc = acpi_ns_get_attached_object(node); | 151 | obj_desc = acpi_ns_get_attached_object(node); |
152 | if (obj_desc) { | 152 | if (obj_desc) { |
153 | |||
153 | /* We have the notify object, Get the right handler */ | 154 | /* We have the notify object, Get the right handler */ |
154 | 155 | ||
155 | switch (node->type) { | 156 | switch (node->type) { |
@@ -240,6 +241,7 @@ static void ACPI_SYSTEM_XFACE acpi_ev_notify_dispatch(void *context) | |||
240 | * to the device. | 241 | * to the device. |
241 | */ | 242 | */ |
242 | if (notify_info->notify.value <= ACPI_MAX_SYS_NOTIFY) { | 243 | if (notify_info->notify.value <= ACPI_MAX_SYS_NOTIFY) { |
244 | |||
243 | /* Global system notification handler */ | 245 | /* Global system notification handler */ |
244 | 246 | ||
245 | if (acpi_gbl_system_notify.handler) { | 247 | if (acpi_gbl_system_notify.handler) { |
@@ -297,6 +299,7 @@ static void ACPI_SYSTEM_XFACE acpi_ev_global_lock_thread(void *context) | |||
297 | /* Signal threads that are waiting for the lock */ | 299 | /* Signal threads that are waiting for the lock */ |
298 | 300 | ||
299 | if (acpi_gbl_global_lock_thread_count) { | 301 | if (acpi_gbl_global_lock_thread_count) { |
302 | |||
300 | /* Send sufficient units to the semaphore */ | 303 | /* Send sufficient units to the semaphore */ |
301 | 304 | ||
302 | status = | 305 | status = |
@@ -335,6 +338,7 @@ static u32 acpi_ev_global_lock_handler(void *context) | |||
335 | */ | 338 | */ |
336 | ACPI_ACQUIRE_GLOBAL_LOCK(acpi_gbl_common_fACS.global_lock, acquired); | 339 | ACPI_ACQUIRE_GLOBAL_LOCK(acpi_gbl_common_fACS.global_lock, acquired); |
337 | if (acquired) { | 340 | if (acquired) { |
341 | |||
338 | /* Got the lock, now wake all threads waiting for it */ | 342 | /* Got the lock, now wake all threads waiting for it */ |
339 | 343 | ||
340 | acpi_gbl_global_lock_acquired = TRUE; | 344 | acpi_gbl_global_lock_acquired = TRUE; |
@@ -439,6 +443,7 @@ acpi_status acpi_ev_acquire_global_lock(u16 timeout) | |||
439 | 443 | ||
440 | ACPI_ACQUIRE_GLOBAL_LOCK(acpi_gbl_common_fACS.global_lock, acquired); | 444 | ACPI_ACQUIRE_GLOBAL_LOCK(acpi_gbl_common_fACS.global_lock, acquired); |
441 | if (acquired) { | 445 | if (acquired) { |
446 | |||
442 | /* We got the lock */ | 447 | /* We got the lock */ |
443 | 448 | ||
444 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, | 449 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, |
@@ -492,6 +497,7 @@ acpi_status acpi_ev_release_global_lock(void) | |||
492 | 497 | ||
493 | acpi_gbl_global_lock_thread_count--; | 498 | acpi_gbl_global_lock_thread_count--; |
494 | if (acpi_gbl_global_lock_thread_count) { | 499 | if (acpi_gbl_global_lock_thread_count) { |
500 | |||
495 | /* There are still some threads holding the lock, cannot release */ | 501 | /* There are still some threads holding the lock, cannot release */ |
496 | 502 | ||
497 | return_ACPI_STATUS(AE_OK); | 503 | return_ACPI_STATUS(AE_OK); |