PM: Reduce waiting for wakeup reasons to 100 ms

In 80% cases there is no need to wait, and in case
of timeout we continue to resume.

Change-Id: I6ae44e0ef6f7aa497f57fcd5f6e6bc83dc781852
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt 2015-06-09 15:12:54 -07:00 committed by Artem Borisov
parent 18bbd5eed4
commit dc58d3c933

View file

@ -245,7 +245,7 @@ static bool suspend_again(bool *drivers_resumed)
* callbacks. Don't bother thawing the kernel threads if a match is
* not found.
*/
irqs = get_wakeup_reasons(HZ, &unfinished);
irqs = get_wakeup_reasons(msecs_to_jiffies(100), &unfinished);
if (!suspend_again_match(irqs, &unfinished))
return false;