]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Export FADT pm_profile integer value to userspace
authorThomas Renninger <trenn@suse.de>
Fri, 4 Nov 2011 02:33:46 +0000 (03:33 +0100)
committerLen Brown <len.brown@intel.com>
Mon, 7 Nov 2011 01:48:42 +0000 (20:48 -0500)
commitc8a7ab8fbba943d5c3839f8b9bf315ac568787d9
tree6c98cdb7aa5d9be22e2b24ca06b822455ef4b9f5
parent028c12fe572c1286919e339b39eaef35b2836cc0
ACPI: Export FADT pm_profile integer value to userspace

There are a lot userspace approaches to detect the usage of the
platform (laptop, workstation, server, ...) and adjust kernel tunables
accordingly (io/process scheduler, power management, ...).

These approaches need constant maintaining and are ugly to implement
(detect PCMCIA controller -> laptop,
does not work on recent systems anymore, ...)
On ACPI systems there is an easy and reliable way (if implemented
in BIOS and most recent platforms have this value set).
-> export it to userspace.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Documentation/ABI/stable/sysfs-acpi-pmprofile [new file with mode: 0644]
drivers/acpi/sysfs.c