diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-12-03 22:58:05 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-12-24 15:02:41 +0100 |
commit | 1e75227ef0571031cd18536ab768ee35667ec5b9 (patch) | |
tree | 13535aa717c401d390f6ab3cbd87e030aa2a75ef /kernel/power | |
parent | PM: Fix references to basic-pm-debugging.txt in drivers-testing.txt (diff) | |
download | linux-1e75227ef0571031cd18536ab768ee35667ec5b9.tar.xz linux-1e75227ef0571031cd18536ab768ee35667ec5b9.zip |
PM: Prevent dpm_prepare() from returning errors unnecessarily
Currently dpm_prepare() returns error code if it finds that a device
being suspended has a pending runtime resume request. However, it
should not do that if the checking for wakeup events is not enabled.
On the other hand, if the checking for wakeup events is enabled, it
can return error when a wakeup event is detected, regardless of its
source.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/power')
0 files changed, 0 insertions, 0 deletions