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
nexedi
linux
Commits
c4e3aa81
Commit
c4e3aa81
authored
Aug 04, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[power] Make sure ACPI prepares a console during S3.
Orginally from Pavel Machek.
parent
2e4208cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
drivers/acpi/sleep/main.c
drivers/acpi/sleep/main.c
+7
-3
No files found.
drivers/acpi/sleep/main.c
View file @
c4e3aa81
...
...
@@ -226,13 +226,15 @@ acpi_suspend (
if
(
state
==
ACPI_STATE_S4
&&
!
acpi_gbl_FACS
->
S4bios_f
)
return
AE_ERROR
;
pm_prepare_console
();
/*
* TBD: S1 can be done without device_suspend. Make a CONFIG_XX
* to handle however when S1 failed without device_suspend.
*/
if
(
freeze_processes
())
{
thaw_processes
()
;
return
AE_ERROR
;
/* device_suspend needs processes to be stopped */
status
=
AE_ERROR
;
goto
Done
;
}
/* do we have a wakeup address for S2 and S3? */
...
...
@@ -269,8 +271,10 @@ acpi_suspend (
/* reset firmware waking vector */
acpi_set_firmware_waking_vector
((
acpi_physical_address
)
0
);
thaw_processes
();
Done:
thaw_processes
();
pm_restore_console
();
return
status
;
}
...
...
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