瀏覽代碼

ACPI: inline trivial acpi_os_get_thread_id()

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>
Len Brown 19 年之前
父節點
當前提交
ec7381d6bf
共有 2 個文件被更改,包括 4 次插入8 次删除
  1. 0 8
      drivers/acpi/osl.c
  2. 4 0
      include/acpi/platform/aclinux.h

+ 0 - 8
drivers/acpi/osl.c

@@ -896,14 +896,6 @@ u8 acpi_os_writable(void *ptr, acpi_size len)
 }
 }
 #endif
 #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)
 acpi_status acpi_os_signal(u32 function, void *info)
 {
 {
 	switch (function) {
 	switch (function) {

+ 4 - 0
include/acpi/platform/aclinux.h

@@ -99,4 +99,8 @@
 
 
 #define acpi_cpu_flags unsigned long
 #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__ */
 #endif				/* __ACLINUX_H__ */