diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-12-03 20:22:34 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2009-12-06 16:17:56 +0100 |
commit | 63c94801701abfea21570d3302687ec027ed33e8 (patch) | |
tree | 4806596c35a8c92640e26fe66394b775dca2208c /Documentation/watchdog/watchdog-api.txt | |
parent | 7b199ca2025f4756daceec8802f07da636c524c9 (diff) |
PM / Runtime: Use deferred_resume flag in pm_request_resume
This patch (as1307) adds a small optimization to
__pm_request_resume(). If the device is currently being suspended,
there's no need to queue a work routine to resume it. Setting the
deferred_resume flag will suffice. (There's also a minor improvement
to the function's code layout: An unnecessary "else" is removed.)
Also, the patch clarifies the usage of the deferred_resume flag. It
is meaningful only while a suspend is in progress, so it should be
cleared just before a suspend starts, not just after one ends.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'Documentation/watchdog/watchdog-api.txt')
0 files changed, 0 insertions, 0 deletions