ACPI: acpi_os_get_thread_id() returns current
authorLen Brown <len.brown@intel.com>
Sat, 8 Jul 2006 00:11:07 +0000 (20:11 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 9 Jul 2006 19:19:44 +0000 (15:19 -0400)
commitab8aa06a5c0b75974fb1949365cbb20a15cedf14
tree8498b3b3222198c45fa322b6fdd3215687dc30e4
parent120bda20c6f64b32e8bfbdd7b34feafaa5f5332e
ACPI: acpi_os_get_thread_id() returns current

Linux mutexes and the debug code that that reference
acpi_os_get_thread_id() are happy with 0.
But the AML mutexes in exmutex.c expect a unique non-zero
number for each thread - as they track this thread_id
to permit the mutex re-entrancy defined by the ACPI spec.

http://bugzilla.kernel.org/show_bug.cgi?id=6687

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/executer/exmutex.c
drivers/acpi/utilities/utdebug.c
drivers/acpi/utilities/utmutex.c
include/acpi/aclocal.h
include/acpi/platform/aclinux.h