Files
linux/Documentation
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-02-24 13:51:32 +01:00
2008-02-14 00:16:13 -05:00
2008-10-16 11:21:30 -07:00
2008-02-03 15:54:28 +02:00
2010-08-14 22:26:52 +02:00
2008-01-11 18:22:30 -06:00
2005-04-16 15:20:36 -07:00
2010-07-11 22:17:45 +02:00
2009-06-18 13:04:04 -07:00
2010-04-08 11:34:34 +02:00
2008-12-03 16:09:53 -07:00
2008-07-25 10:53:30 -07:00
2010-08-12 04:14:05 +01:00
2009-10-15 07:25:20 -06:00
2010-09-09 18:57:24 -07:00
2008-03-24 19:22:19 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-07-01 22:36:22 +02:00
2009-08-28 15:21:12 -04:00
2009-04-27 12:00:27 -07:00
2009-04-27 12:00:27 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-11-12 17:17:17 -08:00
2010-03-10 17:09:33 -05:00
2006-06-27 17:32:47 -07:00
2005-04-16 15:20:36 -07:00
2005-06-21 18:46:32 -07:00
2005-04-16 15:20:36 -07:00
2010-07-19 10:56:54 +02:00
2005-04-16 15:20:36 -07:00
2010-03-16 11:47:56 +01:00
2010-08-02 15:35:10 +10:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2010-09-13 10:26:52 +02:00
2005-04-16 15:20:36 -07:00