public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: Zhang Rui <rui.zhang@intel.com>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH 1/7] ACPI: delete CONFIG_ACPI_PROCFS_POWER
Date: Mon, 13 Dec 2010 23:59:39 -0500 (EST)	[thread overview]
Message-ID: <alpine.LFD.2.00.1012132356120.23573@x980> (raw)
In-Reply-To: <1291619053.19296.575.camel@rui>

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@intel.com>
> ---
>  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

      reply	other threads:[~2010-12-14  4:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-06  7:04 [PATCH 1/7] ACPI: delete CONFIG_ACPI_PROCFS_POWER Zhang Rui
2010-12-14  4:59 ` Len Brown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.00.1012132356120.23573@x980 \
    --to=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox