diff options
author | Zhang Rui <rui.zhang@intel.com> | 2010-07-14 22:46:15 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-08-14 23:02:00 -0400 |
commit | a25ee9200eef07377e1703697afbb5d81f89e500 (patch) | |
tree | efecbc42b6a600ee17c81951834d88f1ad0566e3 /drivers/acpi/internal.h | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) |
ACPI: introduce drivers/acpi/debugfs.c
Introduce drivers/acpi/debugfs.c.
Code for ACPI debugfs I/F,
i.e. /sys/kernel/debug/acpi/custom_method,
is moved to this file.
And make ACPI debugfs always built in,
even if CONFIG_ACPI_DEBUG is cleared.
BTW:this adds about 400bytes code to ACPI, when
CONFIG_ACPI_DEBUG is cleared.
[uaccess.h build fix from Andrew Morton <akpm@linux-foundation.org>]
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r-- | drivers/acpi/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index f8f190ec066e..0650e343867e 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h | |||
@@ -30,6 +30,12 @@ int acpi_debug_init(void); | |||
30 | static inline int acpi_debug_init(void) { return 0; } | 30 | static inline int acpi_debug_init(void) { return 0; } |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | #ifdef CONFIG_DEBUG_FS | ||
34 | int acpi_debugfs_init(void); | ||
35 | #else | ||
36 | static inline int acpi_debugfs_init(void) { return 0; } | ||
37 | #endif | ||
38 | |||
33 | /* -------------------------------------------------------------------------- | 39 | /* -------------------------------------------------------------------------- |
34 | Power Resource | 40 | Power Resource |
35 | -------------------------------------------------------------------------- */ | 41 | -------------------------------------------------------------------------- */ |