suspend_resume: move sleep to the end of the wake extension loop.
This means that the contents of the loop will be executed only if the
loop condition is actually true, which makes it much less likely that
we will encounter the 'Attempted wake time extension, but suspended
Commit-Queue: Jon Salz <email@example.com>
Reviewed-by: Jon Salz <firstname.lastname@example.org>
Tested-by: Jon Salz <email@example.com>
1 file changed