ACPI: add a Kconfig option for ACPI procfs interface
authorZhang Rui <rui.zhang@intel.com>
Mon, 29 Jan 2007 03:02:30 +0000 (11:02 +0800)
committerLen Brown <len.brown@intel.com>
Mon, 29 Jan 2007 03:33:06 +0000 (22:33 -0500)
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>
Documentation/feature-removal-schedule.txt
drivers/acpi/Kconfig

index 30f3c8c9c12aeb60f66c925949be8648a0bafd91..9bc37529f4cd5936cafb599d131327ee37f59c37 100644 (file)
@@ -256,3 +256,12 @@ Why:       Speedstep-centrino driver with ACPI hooks and acpi-cpufreq driver are
 Who:   Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
 
 ---------------------------
+
+What:  ACPI procfs interface
+When:  July 2007
+Why:   After ACPI sysfs conversion, ACPI attributes will be duplicated
+       in sysfs and the ACPI procfs interface should be removed.
+Who:   Zhang Rui <rui.zhang@intel.com>
+
+---------------------------
+
index 0f9d4be7ed758814ba7c9a3e63d8620998609e04..1f82ceba464678b54ddbfdbe092b4230e87afeb9 100644 (file)
@@ -77,6 +77,16 @@ config ACPI_SLEEP_PROC_SLEEP
          Create /proc/acpi/sleep
          Deprecated by /sys/power/state
 
+config ACPI_PROCFS
+       bool "Procfs interface (deprecated)"
+       depends on ACPI
+       default y
+       ---help---
+         Procfs interface for ACPI is made optional for back-compatible.
+         As the same functions are duplicated in sysfs interface
+         and this proc interface will be removed some time later,
+         it's marked as deprecated.
+
 config ACPI_AC
        tristate "AC Adapter"
        depends on X86