diff options
| author | Rafael J. Wysocki <[email protected]> | 2010-12-16 16:11:58 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2010-12-16 16:12:25 +0000 |
| commit | f08f5a0add20834d3f3d876dfe08005a5df656db (patch) | |
| tree | 92b3391ed46ceacc8b42a78fb7c6459fb5fa0633 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | PM / Hibernate: Restore old swap signature to avoid user space breakage (diff) | |
| download | kernel-f08f5a0add20834d3f3d876dfe08005a5df656db.tar.gz kernel-f08f5a0add20834d3f3d876dfe08005a5df656db.zip | |
PM / Runtime: Fix pm_runtime_suspended()
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 <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
