| Zhang Rui | a25ee92 | 2010-07-15 10:46:15 +0800 | [diff] [blame] | 1 | /* |
| 2 | * debugfs.c - ACPI debugfs interface to userspace. | ||||
| 3 | */ | ||||
| 4 | |||||
| Paul Gortmaker | 214f2c9 | 2011-10-26 16:22:14 -0400 | [diff] [blame] | 5 | #include <linux/export.h> |
| Zhang Rui | a25ee92 | 2010-07-15 10:46:15 +0800 | [diff] [blame] | 6 | #include <linux/init.h> |
| Zhang Rui | a25ee92 | 2010-07-15 10:46:15 +0800 | [diff] [blame] | 7 | #include <linux/debugfs.h> |
| Lv Zheng | 8b48463 | 2013-12-03 08:49:16 +0800 | [diff] [blame] | 8 | #include <linux/acpi.h> |
| Zhang Rui | a25ee92 | 2010-07-15 10:46:15 +0800 | [diff] [blame] | 9 | |
| Nicolas Iooss | 1074261 | 2015-08-01 21:32:17 +0800 | [diff] [blame] | 10 | #include "internal.h" |
| 11 | |||||
| Zhang Rui | a25ee92 | 2010-07-15 10:46:15 +0800 | [diff] [blame] | 12 | #define _COMPONENT ACPI_SYSTEM_COMPONENT |
| 13 | ACPI_MODULE_NAME("debugfs"); | ||||
| 14 | |||||
| Thomas Renninger | aecad43 | 2011-05-26 12:26:23 +0200 | [diff] [blame] | 15 | struct dentry *acpi_debugfs_dir; |
| Thomas Renninger | 526b4af | 2011-05-26 12:26:24 +0200 | [diff] [blame] | 16 | EXPORT_SYMBOL_GPL(acpi_debugfs_dir); |
| Zhang Rui | a25ee92 | 2010-07-15 10:46:15 +0800 | [diff] [blame] | 17 | |
| Thomas Renninger | aecad43 | 2011-05-26 12:26:23 +0200 | [diff] [blame] | 18 | void __init acpi_debugfs_init(void) |
| 19 | { | ||||
| 20 | acpi_debugfs_dir = debugfs_create_dir("acpi", NULL); | ||||
| Zhang Rui | a25ee92 | 2010-07-15 10:46:15 +0800 | [diff] [blame] | 21 | } |