aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/debugfs.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2010-07-14 22:46:17 -0400
committerLen Brown <len.brown@intel.com>2010-08-14 23:02:14 -0400
commitc637e4861c7db8165d0f438db3829e7878c96059 (patch)
tree7cb2621815f1861d0e333cced6bf993f1b38c4e0 /drivers/acpi/debugfs.c
parenta25ee9200eef07377e1703697afbb5d81f89e500 (diff)
ACPI: introduce module parameter acpi.aml_debug_output
Introduce module parameter acpi.aml_debug_output. With acpi.aml_debug_output set, we can get AML debug object output (Store (AAA, Debug)), even with CONFIG_ACPI_DEBUG cleared. Together with the runtime custom method mechanism, we can debug AML code problems without rebuilding the kernel. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/debugfs.c')
-rw-r--r--drivers/acpi/debugfs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/debugfs.c b/drivers/acpi/debugfs.c
index abfcf9f6e76..7de27d49c4b 100644
--- a/drivers/acpi/debugfs.c
+++ b/drivers/acpi/debugfs.c
@@ -12,6 +12,14 @@
12#define _COMPONENT ACPI_SYSTEM_COMPONENT 12#define _COMPONENT ACPI_SYSTEM_COMPONENT
13ACPI_MODULE_NAME("debugfs"); 13ACPI_MODULE_NAME("debugfs");
14 14
15
16/* /sys/modules/acpi/parameters/aml_debug_output */
17
18module_param_named(aml_debug_output, acpi_gbl_enable_aml_debug_object,
19 bool, 0644);
20MODULE_PARM_DESC(aml_debug_output,
21 "To enable/disable the ACPI Debug Object output.");
22
15/* /sys/kernel/debug/acpi/custom_method */ 23/* /sys/kernel/debug/acpi/custom_method */
16 24
17static ssize_t cm_write(struct file *file, const char __user * user_buf, 25static ssize_t cm_write(struct file *file, const char __user * user_buf,