Skip to contentSkip to conversation

: ACPI: add a Kconfig option for ACPI procfs interface

PATCH In review Zhang Rui 2 participants 2 messages Jan 29, 2007 – Jan 30, 2007

Subsystems (2)
lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 1/3 : ACPI: add a Kconfig option for ACPI procfs interface

From: Zhang Rui <[email protected]>

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.

---
 Documentation/feature-removal-schedule.txt |    9 +++++++++
 drivers/acpi/Kconfig                       |   10 ++++++++++
 2 files changed, 19 insertions(+)
drivers/acpi/Kconfig +10 -0
Index: linux-2.6.20-rc4-mm1/drivers/acpi/Kconfig
===================================================================
@@ -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
Documentation/feature-removal-schedule.txt +9 -0
Index: linux-2.6.20-rc4-mm1/Documentation/feature-removal-schedule.txt
===================================================================
@@ -264,3 +264,12 @@ Why:   OSS drivers with ALSA replacement
 Who:   Adrian Bunk <[email protected]>
 
 ---------------------------
+
+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 <[email protected]>
+
+---------------------------
+
reviewer
#1 lore raw

applied 1-3 to acpi-test

thanks,
-Len

Quoted 60 lines · Zhang Rui

From: Zhang Rui <[email protected]>

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.

---
 Documentation/feature-removal-schedule.txt |    9 +++++++++
 drivers/acpi/Kconfig                       |   10 ++++++++++
 2 files changed, 19 insertions(+)

Index: linux-2.6.20-rc4-mm1/drivers/acpi/Kconfig
===================================================================

drivers/acpi/Kconfig +10 -0
@@ -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

Index: linux-2.6.20-rc4-mm1/Documentation/feature-removal-schedule.txt
===================================================================

Documentation/feature-removal-schedule.txt +9 -1
@@ -264,3 +264,12 @@ Why:   OSS drivers with ALSA replacement
 Who:   Adrian Bunk <[email protected]>
 
 ---------------------------
+
+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 <[email protected]>
+
+---------------------------
+
-

To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html