mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
18bbd5eed4
commit
dc58d3c933
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue