diff options
author | Ruchi Kandoi <kandoiruchi@google.com> | 2015-05-08 02:07:42 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-05-19 00:26:56 (GMT) |
commit | 671767360db8fdd1f082d15fb4b0107c1bb94a0b (patch) | |
tree | b6034c7606da0728504e449353f46ec74bdfac54 /fs/fs_pin.c | |
parent | 75e0678e7095c486a1b39ea560f8eb51a2714d6d (diff) | |
download | linux-671767360db8fdd1f082d15fb4b0107c1bb94a0b.tar.xz |
PM / sleep: Return -EBUSY from suspend_enter() on wakeup detection
If a wakeup source is found to be pending in the last stage of
suspend after syscore suspend, then the machine won't suspend, but
suspend_enter() will return 0. That is confusing, as wakeup detection
elsewhere causes -EBUSY to be returned from suspend_enter().
To avoid the confusion, make suspend_enter() return -EBUSY in that
case too.
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
[ rjw: Subject and changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'fs/fs_pin.c')
0 files changed, 0 insertions, 0 deletions