Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ca935f8e
Commit
ca935f8e
authored
Oct 06, 2017
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pm-sleep'
* pm-sleep: PM / s2idle: Invoke the ->wake() platform callback earlier
parents
9e66317d
87cbde8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
kernel/power/suspend.c
kernel/power/suspend.c
+11
-7
No files found.
kernel/power/suspend.c
View file @
ca935f8e
...
...
@@ -120,22 +120,26 @@ static void s2idle_loop(void)
* frozen processes + suspended devices + idle processors.
* Thus s2idle_enter() should be called right after
* all devices have been suspended.
*
* Wakeups during the noirq suspend of devices may be spurious,
* so prevent them from terminating the loop right away.
*/
error
=
dpm_noirq_suspend_devices
(
PMSG_SUSPEND
);
if
(
!
error
)
s2idle_enter
();
else
if
(
error
==
-
EBUSY
&&
pm_wakeup_pending
())
error
=
0
;
dpm_noirq_resume_devices
(
PMSG_RESUME
);
if
(
error
&&
(
error
!=
-
EBUSY
||
!
pm_wakeup_pending
()))
{
dpm_noirq_end
();
break
;
}
if
(
s2idle_ops
&&
s2idle_ops
->
wake
)
if
(
!
error
&&
s2idle_ops
&&
s2idle_ops
->
wake
)
s2idle_ops
->
wake
();
dpm_noirq_resume_devices
(
PMSG_RESUME
);
dpm_noirq_end
();
if
(
error
)
break
;
if
(
s2idle_ops
&&
s2idle_ops
->
sync
)
s2idle_ops
->
sync
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment