Files
linux/include
Rafael J. Wysocki e87167421b PM / Runtime: Fix pm_runtime_suspended()
commit f08f5a0add upstream.

There are some situations (e.g. in __pm_generic_call()), where
pm_runtime_suspended() is used to decide whether or not to execute
a device's (system) ->suspend() callback.  The callback is not
executed if pm_runtime_suspended() returns true, but it does so
for devices that don't even support runtime PM, because the
power.disable_depth device field is ignored by it.  This leads to
problems (i.e. devices are not suspened when they should), so rework
pm_runtime_suspended() so that it returns false if the device's
power.disable_depth field is different from zero.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-07 13:58:32 -08:00
..
2010-09-28 21:38:19 -04:00
2010-09-09 18:57:24 -07:00
2010-08-08 20:58:20 +01:00
2011-01-07 13:58:27 -08:00
2010-08-04 10:44:19 -07:00
2010-06-03 03:21:52 -07:00
2009-06-12 14:20:05 -05:00