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)
commit362b646062b2073bd5c38efb42171d86e4f717e6
tree6c98cdb7aa5d9be22e2b24ca06b822455ef4b9f5
parentc3b92c8787367a8bb53d57d9789b558f1295cc96
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