HI! > There seems to be a consensus on linux-pm that the sysfs power/state files > are the wrong approach to userspace having control over runtime PM. Not > that there's agreement on what such controls _should_ look like, or even > that there should be such controls for purposes other than testing... > > So here's a patch that just makes it easy to get rid of this misfeature. > It'll help flush out any userspace software that really thinks it needs that > mechanism; PCMCIA seems to no longer be in that camp, it has it's own > sysfs attribute. > Add a new PM_SYSFS_DEPRECATED config option to control whether or > not the /sys/devices/.../power/state files are provided. This will > make it easier to get rid of that mechanism when the time comes, > and to verify that userspace tools work right without it. > > Signed-off-by: David Brownell <dbrownell at users.sourceforge.net> Looks good to me, ACK. (And sorry for long delay). I guess this should go with it...? OTOH andrew wanted alternative, first, before removing the feature... but it is unclear to me if we want the feature at all on the production system, so... Signed-off-by: Pavel Machek <pavel at suse.cz> diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 87851ef..4902bef 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt @@ -6,6 +6,16 @@ be removed from this file. --------------------------- +What: /sys/device/.../power/state +When: July 2007 +Files: +Why: Because it takes integers, and different userland applications + expect different numbers to mean different things. + (Pcmcia expect 2 for off, some other code expects 3 for off). +Who: Pavel Machek <pavel at suse.cz> + +--------------------------- + What: RAW driver (CONFIG_RAW_DRIVER) When: December 2005 Why: declared obsolete since kernel 2.6.3 -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html