]> err.no Git - linux-2.6/commitdiff
ACPI: inline trivial acpi_os_get_thread_id()
authorLen Brown <lenb@toshiba.site>
Sat, 1 Apr 2006 10:12:23 +0000 (05:12 -0500)
committerLen Brown <len.brown@intel.com>
Sat, 1 Apr 2006 10:12:23 +0000 (05:12 -0500)
acpi_os_get_thread_id() is used only for debugging
code that is not enabled on Linux, so stub it out.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c
include/acpi/platform/aclinux.h

index 13b5fd5854a80bd9f92d1eb8e90764a3fe8f6d5a..56d97f1d108f293489f6cdf94f2e9fae91ec5c01 100644 (file)
@@ -896,14 +896,6 @@ u8 acpi_os_writable(void *ptr, acpi_size len)
 }
 #endif
 
-u32 acpi_os_get_thread_id(void)
-{
-       if (!in_atomic())
-               return current->pid;
-
-       return 0;
-}
-
 acpi_status acpi_os_signal(u32 function, void *info)
 {
        switch (function) {
index 2f5bb5bd76b7cb185c4861ff570fa954dcb46ccc..b5655a665ba8c9d8c5f93c90aa5ba9cbd3900f23 100644 (file)
@@ -99,4 +99,8 @@
 
 #define acpi_cpu_flags unsigned long
 
+#define acpi_thread_id u32
+
+static inline acpi_thread_id acpi_os_get_thread_id(void) { return 0; }
+
 #endif                         /* __ACLINUX_H__ */