Commit b981c591891dc8885de36498d38fa8d8a5481069
Committed by
Len Brown
1 parent
bb0958544f
Exists in
master
and in
4 other branches
ACPI: add a Kconfig option for ACPI procfs interface
Add a kconfig option CONFIG_ACPI_PROCFS to make procfs interface a configurable attribute of ACPI. No procfs interface is actually deprecated, and no sysfs interface is added in this patch. CONGI_ACPI_PROCFS is used to mark procfs interface as deprecated once the same function is duplicated in sysfs. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Showing 2 changed files with 19 additions and 0 deletions Side-by-side Diff
Documentation/feature-removal-schedule.txt
... | ... | @@ -256,4 +256,12 @@ |
256 | 256 | Who: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> |
257 | 257 | |
258 | 258 | --------------------------- |
259 | + | |
260 | +What: ACPI procfs interface | |
261 | +When: July 2007 | |
262 | +Why: After ACPI sysfs conversion, ACPI attributes will be duplicated | |
263 | + in sysfs and the ACPI procfs interface should be removed. | |
264 | +Who: Zhang Rui <rui.zhang@intel.com> | |
265 | + | |
266 | +--------------------------- |
drivers/acpi/Kconfig
... | ... | @@ -77,6 +77,16 @@ |
77 | 77 | Create /proc/acpi/sleep |
78 | 78 | Deprecated by /sys/power/state |
79 | 79 | |
80 | +config ACPI_PROCFS | |
81 | + bool "Procfs interface (deprecated)" | |
82 | + depends on ACPI | |
83 | + default y | |
84 | + ---help--- | |
85 | + Procfs interface for ACPI is made optional for back-compatible. | |
86 | + As the same functions are duplicated in sysfs interface | |
87 | + and this proc interface will be removed some time later, | |
88 | + it's marked as deprecated. | |
89 | + | |
80 | 90 | config ACPI_AC |
81 | 91 | tristate "AC Adapter" |
82 | 92 | depends on X86 |