]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / debugger: Add IO interface to access debugger functionalities
authorLv Zheng <lv.zheng@intel.com>
Thu, 3 Dec 2015 02:43:00 +0000 (10:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Dec 2015 23:17:44 +0000 (00:17 +0100)
commit0d6021d78333170f06f78fc0a60037b4fc5048a2
treeddc430d68c4cbed66c9cd008812b8885a55cd13d
parent8ee22c59f585bd91de72faa9afa47b41639225c3
ACPI / debugger: Add IO interface to access debugger functionalities

This patch adds /sys/kernel/debug/acpi/acpidbg, which can be used by
userspace programs to access ACPICA debugger functionalities.

Known issue:
1. IO flush support
   acpi_os_notify_command_complete() and acpi_os_wait_command_ready() can
   be used by acpi_dbg module to implement .flush() filesystem operation.
   While this patch doesn't go that far. It then becomes userspace tool's
   duty now to flush old commands before executing new batch mode commands.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/acpi_dbg.c [new file with mode: 0644]
drivers/acpi/bus.c
drivers/acpi/osl.c
include/acpi/platform/aclinux.h
include/acpi/platform/aclinuxex.h
include/linux/acpi_dbg.h [new file with mode: 0644]