PM / Runtime: Make runtime_status attribute not debug-only (v. 2)
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 7 Jul 2010 22:05:37 +0000 (00:05 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 19 Jul 2010 00:00:36 +0000 (02:00 +0200)
commit0fcb4eef8294492c8f1de8236b1ed81f09e42922
tree23c96ecfc5a85c1870d85c5db9421b6c09763fa8
parent4eb241e5691363c391aac8a5051d0d013188ec84
PM / Runtime: Make runtime_status attribute not debug-only (v. 2)

This patch (as1404b) makes the runtime_status sysfs attribute available
even in the absence of CONFIG_PM_ADVANCED_DEBUG, and it changes the
routine to display "unsupported" when runtime PM is disabled for a
device.  Although not strictly 100% accurate, this will almost always
be correct.

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