PM: Remove obsolete and drop unnecessary includes
Subsystems (3)
cover PM: Remove obsolete and drop unnecessary includes
Hi,
The first of the following two patches drops some outdated documentation and the other drops unnecessary includes from include/linux/pm.h .
Thanks,
Rafael
Signature · 1 line
"Premature optimization is the root of all evil." - Donald Knuth
PATCH 1/2 PM: Remove obsolete piece of PM documentation (rev. 2)
From: Rafael J. Wysocki <[email protected]>
Remove some obsolete PM documentation.
The majority of contents of Documentation/power/pm.txt are outdated. Remove the outdated parts of this file and move the rest to Documentation/power/apm-acpi.txt . Update the index in Documentation/power/ as appropriate.
--- Documentation/power/00-INDEX | 4 Documentation/power/apm-acpi.txt | 32 ++++ Documentation/power/pm.txt | 257 --------------------------------------- 3 files changed, 34 insertions(+), 259 deletions(-)
Documentation/power/00-INDEX +2 -2
@@ -1,5 +1,7 @@ 00-INDEX - This file +apm-acpi.txt + - basic info about the APM and ACPI support. basic-pm-debugging.txt - Debugging suspend and resume devices.txt
@@ -14,8 +16,6 @@ notifiers.txt - Registering suspend notifiers in device drivers pci.txt - How the PCI Subsystem Does Power Management -pm.txt - - info on Linux power management support. pm_qos_interface.txt - info on Linux PM Quality of Service interface power_supply_class.txt
Documentation/power/apm-acpi.txt new file +32 -0
@@ -0,0 +1,32 @@ +APM or ACPI? +------------ +If you have a relatively recent x86 mobile, desktop, or server system, +odds are it supports either Advanced Power Management (APM) or +Advanced Configuration and Power Interface (ACPI). ACPI is the newer +of the two technologies and puts power management in the hands of the +operating system, allowing for more intelligent power management than +is possible with BIOS controlled APM. + +The best way to determine which, if either, your system supports is to +build a kernel with both ACPI and APM enabled (as of 2.3.x ACPI is +enabled by default). If a working ACPI implementation is found, the +ACPI driver will override and disable APM, otherwise the APM driver +will be used. + +No, sorry, you cannot have both ACPI and APM enabled and running at +once. Some people with broken ACPI or broken APM implementations +would like to use both to get a full set of working features, but you +simply cannot mix and match the two. Only one power management +interface can be in control of the machine at once. Think about it.. + +User-space Daemons +------------------ +Both APM and ACPI rely on user-space daemons, apmd and acpid +respectively, to be completely functional. Obtain both of these +daemons from your Linux distribution or from the Internet (see below) +and be sure that they are started sometime in the system boot process. +Go ahead and start both. If ACPI or APM is not available on your +system the associated daemon will exit gracefully. + + apmd: http://worldvisions.ca/~apenwarr/apmd/ + acpid: http://acpid.sf.net/
Documentation/power/pm.txt deleted +0 -257
257 lines not on this page · raw message
PATCH 1/2 PM: Remove obsolete piece of PM documentation (rev. 2)
In reply to Rafael J. WysockiFrom: Rafael J. Wysocki <[email protected]>
Remove some obsolete PM documentation.
The majority of contents of Documentation/power/pm.txt are outdated. Remove the outdated parts of this file and move the rest to Documentation/power/apm-acpi.txt . Update the index in Documentation/power/ as appropriate.
--- Documentation/power/00-INDEX | 4 Documentation/power/apm-acpi.txt | 32 ++++ Documentation/power/pm.txt | 257 --------------------------------------- 3 files changed, 34 insertions(+), 259 deletions(-)
Documentation/power/00-INDEX +2 -2
@@ -1,5 +1,7 @@ 00-INDEX - This file +apm-acpi.txt + - basic info about the APM and ACPI support. basic-pm-debugging.txt - Debugging suspend and resume devices.txt
@@ -14,8 +16,6 @@ notifiers.txt - Registering suspend notifiers in device drivers pci.txt - How the PCI Subsystem Does Power Management -pm.txt - - info on Linux power management support. pm_qos_interface.txt - info on Linux PM Quality of Service interface power_supply_class.txt
Documentation/power/apm-acpi.txt new file +32 -0
@@ -0,0 +1,32 @@ +APM or ACPI? +------------ +If you have a relatively recent x86 mobile, desktop, or server system, +odds are it supports either Advanced Power Management (APM) or +Advanced Configuration and Power Interface (ACPI). ACPI is the newer +of the two technologies and puts power management in the hands of the +operating system, allowing for more intelligent power management than +is possible with BIOS controlled APM. + +The best way to determine which, if either, your system supports is to +build a kernel with both ACPI and APM enabled (as of 2.3.x ACPI is +enabled by default). If a working ACPI implementation is found, the +ACPI driver will override and disable APM, otherwise the APM driver +will be used. + +No, sorry, you cannot have both ACPI and APM enabled and running at +once. Some people with broken ACPI or broken APM implementations +would like to use both to get a full set of working features, but you +simply cannot mix and match the two. Only one power management +interface can be in control of the machine at once. Think about it.. + +User-space Daemons +------------------ +Both APM and ACPI rely on user-space daemons, apmd and acpid +respectively, to be completely functional. Obtain both of these +daemons from your Linux distribution or from the Internet (see below) +and be sure that they are started sometime in the system boot process. +Go ahead and start both. If ACPI or APM is not available on your +system the associated daemon will exit gracefully. + + apmd: http://worldvisions.ca/~apenwarr/apmd/ + acpid: http://acpid.sf.net/
Documentation/power/pm.txt deleted +0 -257
257 lines not on this page · raw message
PATCH 2/2 PM: Drop unnecessary includes from pm.h
In reply to Rafael J. WysockiFrom: Rafael J. Wysocki <[email protected]>
Drop unnecessary includes from include/linux/pm.h .
--- include/linux/pm.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/pm.h +0 -2
@@ -22,8 +22,6 @@#define _LINUX_PM_H#include <linux/list.h> -#include <asm/atomic.h> -#include <asm/errno.h> /* * Callbacks for platform drivers to implement.
Re: [PATCH 2/2] PM: Drop unnecessary includes from pm.h
Quoted 5 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Drop unnecessary includes from
include/linux/pm.h.Signed-off-by Rafael J. Wysocki <[email protected]>
ACK.
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Re: [PATCH 2/2] PM: Drop unnecessary includes from pm.h
In reply to Rafael J. WysockiQuoted 5 lines · Rafael J. Wysocki
From: Rafael J. Wysocki <[email protected]>
Drop unnecessary includes from
include/linux/pm.h.Signed-off-by Rafael J. Wysocki <[email protected]>
ACK.
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
PATCH 2/2 PM: Drop unnecessary includes from pm.h
In reply to Rafael J. WysockiFrom: Rafael J. Wysocki <[email protected]>
Drop unnecessary includes from include/linux/pm.h .
--- include/linux/pm.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/pm.h +0 -2
@@ -22,8 +22,6 @@#define _LINUX_PM_H#include <linux/list.h> -#include <asm/atomic.h> -#include <asm/errno.h> /* * Callbacks for platform drivers to implement.