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>
This commit is contained in:

committed by
Rafael J. Wysocki

parent
8a2a2501a8
commit
8cfb0cdf07
@@ -152,8 +152,6 @@
|
||||
#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_writable
|
||||
#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_initialize_command_signals
|
||||
#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_terminate_command_signals
|
||||
#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_wait_command_ready
|
||||
#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_notify_command_complete
|
||||
|
||||
/*
|
||||
* OSL interfaces used by utilities
|
||||
|
@@ -138,16 +138,6 @@ static inline void acpi_os_terminate_command_signals(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline acpi_status acpi_os_wait_command_ready(void)
|
||||
{
|
||||
return AE_ERROR;
|
||||
}
|
||||
|
||||
static inline acpi_status acpi_os_notify_command_complete(void)
|
||||
{
|
||||
return AE_ERROR;
|
||||
}
|
||||
|
||||
/*
|
||||
* OSL interfaces added by Linux
|
||||
*/
|
||||
|
Reference in New Issue
Block a user