Re: [PATCH 1/7] ACPI: delete CONFIG_ACPI_PROCFS_POWER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 6 Dec 2010, Zhang Rui wrote:

> 
> CONFIG_ACPI_PROCFS_POWER is introduced to use the ac and battery driver
> procfs I/F even if CONFIG_ACPI_PROCFS is cleared.
> This is not useful anymore because we want to use the sysfs I/F of
> these drivers, and remove the deprecated procfs I/F permanently in 2.6.39.
> 
> So delete this kernel config and fold into CONFIG_ACPI_PROCFS.

Per our discussion tonight, lets keep CONFIG_ACPI_PROCFS.
We just changed it to default to =n in 2.6.36, and even
that caused complaints -- so there are still users out
there of /proc/acpi/batter, even though /sys/class/power_supply
shipped in 2007.

In 2.6.38, lets add it to feature-removal.txt,
say for a year from now, and add a (single) run-time
warning on access.

thanks,
-Len

> Sign-off-by: Zhang Rui <rui.zhang@xxxxxxxxx>
> ---
>  drivers/acpi/Kconfig   |   15 ---------------
>  drivers/acpi/Makefile  |    2 +-
>  drivers/acpi/ac.c      |   20 ++++++++++----------
>  drivers/acpi/battery.c |   20 ++++++++++----------
>  drivers/acpi/sbs.c     |   20 ++++++++++----------
>  5 files changed, 31 insertions(+), 46 deletions(-)
> 
> Index: linux-2.6/drivers/acpi/Kconfig
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/Kconfig
> +++ linux-2.6/drivers/acpi/Kconfig
> @@ -62,21 +62,6 @@ config ACPI_PROCFS
>  
>  	  Say N to delete /proc/acpi/ files that have moved to /sys/
>  
> -config ACPI_PROCFS_POWER
> -	bool "Deprecated power /proc/acpi directories"
> -	depends on PROC_FS
> -	help
> -	  For backwards compatibility, this option allows
> -          deprecated power /proc/acpi/ directories to exist, even when
> -          they have been replaced by functions in /sys.
> -          The deprecated directories (and their replacements) include:
> -	  /proc/acpi/battery/* (/sys/class/power_supply/*)
> -	  /proc/acpi/ac_adapter/* (sys/class/power_supply/*)
> -	  This option has no effect on /proc/acpi/ directories
> -	  and functions, which do not yet exist in /sys
> -
> -	  Say N to delete power /proc/acpi/ directories that have moved to /sys/
> -
>  config ACPI_POWER_METER
>  	tristate "ACPI 4.0 power meter"
>  	depends on HWMON
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux