Skip to content

Commit

Permalink
ACPI: inline trivial acpi_os_get_thread_id()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Len Brown authored and Len Brown committed Apr 1, 2006
1 parent 8313524 commit ec7381d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions include/acpi/platform/aclinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */

0 comments on commit ec7381d

Please sign in to comment.