]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / PM: Expose lists of device power resources to user space
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 20:51:32 +0000 (21:51 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Jan 2013 20:51:32 +0000 (21:51 +0100)
commit2683ce5347da12c21671a0915e6f2cf03a87f0bd
treecda9262fcb78ab88fcab0530c6cb4128fe7910ce
parentb4d3e6226e3e767cf433eabbdcf7d9c6d128d7d4
ACPI / PM: Expose lists of device power resources to user space

Since ACPI power resources are going to be used more extensively on
new hardware platforms, it is necessary to allow user space (powertop
in particular) to look at the lists of power resources corresponding
to different power states of devices for diagnostics and control
purposes.

For this reason, for each power state of an ACPI device node using
power resources create a special attribute group under the device
node's directory in sysfs containing links to sysfs directories
representing the power resources in that list.  The names of the
new attribute groups are "power_resources_<state>", where <state>
is the state name i.e. "D0", "D1", "D2", or "D3hot".

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-devices-power_resources_D0 [new file with mode: 0644]
Documentation/ABI/testing/sysfs-devices-power_resources_D1 [new file with mode: 0644]
Documentation/ABI/testing/sysfs-devices-power_resources_D2 [new file with mode: 0644]
Documentation/ABI/testing/sysfs-devices-power_resources_D3hot [new file with mode: 0644]
drivers/acpi/power.c