]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Runtime: Add sysfs debug files
authorDominik Brodowski <linux@dominikbrodowski.net>
Fri, 23 Apr 2010 18:32:23 +0000 (20:32 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 10 May 2010 21:08:17 +0000 (23:08 +0200)
commita264e0e7447ddd04af2fb8305d66e276eaf3cc8a
tree7e314fd096afdd220169068a281a1e8e0a8b1e7d
parentc032c0eb0fba9f64a8ce8c0f24a5a7ea2b40dc8c
PM / Runtime: Add sysfs debug files

Add a few sysfs files relating to runtime power management for
advanced debug purposes:

runtime_enabled: is runtime PM enabled for this device? States
are "enabled", "disabled", "forbidden" or a combination
of the latter two.

runtime_status: what state is the device in currently? E.g., it
reports "suspended" for runtime-suspended devices, and
        "active" for active devices. NOTE: if runtime_enabled
returns "disabled", the value of this file may not
reflect its physical state.

runtime_usage: the runtime PM usage count of a device

runtime_active_kids: the runtime PM children usage count of a device, or
0 if the ignore_children flag is set.

Also, CONFIG_PM_SLEEP_ADVANCED_DEBUG is not defined in any Kconfig
file, so replace it with CONFIG_PM_ADVANCED_DEBUG.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/sysfs.c