diff options
author | Thomas Renninger <trenn@suse.de> | 2010-07-16 07:11:31 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 09:49:08 -0400 |
commit | 1195a098168fcacfef1cd80d05358e52fb366bf6 (patch) | |
tree | 8629388386fdb4fd6bc2b955f10a96b83a9790b3 /drivers/acpi/Kconfig | |
parent | cd89e08fa020f5a882f922e3c9e2628235ca6715 (diff) |
ACPI: Provide /sys/kernel/debug/ec/...
This patch provides the same information through debugfs, which previously was
provided through /proc/acpi/embedded_controller/*/info
This is the gpe the EC is connected to and whether the global lock
gets used.
The io ports used are added to /proc/ioports in another patch.
Beside the fact that /proc/acpi is deprecated for quite some time,
this info is not needed for applications and thus can be moved
to debugfs instead of a public interface like /sys.
Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: Alexey Starikovskiy <astarikovskiy@suse.de>
CC: Len Brown <lenb@kernel.org>
CC: linux-kernel@vger.kernel.org
CC: linux-acpi@vger.kernel.org
CC: Bjorn Helgaas <bjorn.helgaas@hp.com>
CC: platform-driver-x86@vger.kernel.org
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/acpi/Kconfig')
-rw-r--r-- | drivers/acpi/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 746411518802..f7226d1bc80e 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
@@ -104,6 +104,19 @@ config ACPI_SYSFS_POWER | |||
104 | help | 104 | help |
105 | Say N to disable power /sys interface | 105 | Say N to disable power /sys interface |
106 | 106 | ||
107 | config ACPI_EC_DEBUGFS | ||
108 | tristate "EC read/write access through /sys/kernel/debug/ec" | ||
109 | default y | ||
110 | help | ||
111 | Say N to disable Embedded Controller /sys/kernel/debug interface | ||
112 | |||
113 | An Embedded Controller typically is available on laptops and reads | ||
114 | sensor values like battery state and temperature. | ||
115 | The kernel access the EC through ACPI parsed code provided by BIOS | ||
116 | tables. | ||
117 | Thus this option is a debug option that helps to write ACPI drivers | ||
118 | and can be used to identify ACPI code or EC firmware bugs. | ||
119 | |||
107 | config ACPI_PROC_EVENT | 120 | config ACPI_PROC_EVENT |
108 | bool "Deprecated /proc/acpi/event support" | 121 | bool "Deprecated /proc/acpi/event support" |
109 | depends on PROC_FS | 122 | depends on PROC_FS |