Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286453
b: refs/heads/master
c: 42f5284
h: refs/heads/master
i:
  286451: 2218f22
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Jan 17, 2012
1 parent c5db451 commit 7ed9649
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 3298758385bbffa792f009fd965e02203aaf82a2
refs/heads/master: 42f5284306465dc263ce227b0c5bd2c7dcd43cdf
9 changes: 3 additions & 6 deletions trunk/drivers/acpi/acpica/utmutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,10 @@ acpi_status acpi_ut_acquire_mutex(acpi_mutex_handle mutex_id)

acpi_status acpi_ut_release_mutex(acpi_mutex_handle mutex_id)
{
acpi_thread_id this_thread_id;

ACPI_FUNCTION_NAME(ut_release_mutex);

this_thread_id = acpi_os_get_thread_id();

ACPI_DEBUG_PRINT((ACPI_DB_MUTEX, "Thread %u releasing Mutex [%s]\n",
(u32)this_thread_id,
(u32)acpi_os_get_thread_id(),
acpi_ut_get_mutex_name(mutex_id)));

if (mutex_id > ACPI_MAX_MUTEX) {
Expand Down Expand Up @@ -329,7 +325,8 @@ acpi_status acpi_ut_release_mutex(acpi_mutex_handle mutex_id)
* the ACPI subsystem code.
*/
for (i = mutex_id; i < ACPI_NUM_MUTEX; i++) {
if (acpi_gbl_mutex_info[i].thread_id == this_thread_id) {
if (acpi_gbl_mutex_info[i].thread_id ==
acpi_os_get_thread_id()) {
if (i == mutex_id) {
continue;
}
Expand Down

0 comments on commit 7ed9649

Please sign in to comment.