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
5e29fc2e
Commit
5e29fc2e
authored
Aug 12, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[power] Minor cleanups.
From Pavel Machek.
parent
86aa5b10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
kernel/power/console.c
kernel/power/console.c
+10
-4
No files found.
kernel/power/console.c
View file @
5e29fc2e
/*
* drivers/power/process.c - Functions for saving/restoring console.
*
* Originally from swsusp.
*/
#include <linux/vt_kern.h>
#include <linux/vt_kern.h>
#include <linux/kbd_kern.h>
#include <linux/kbd_kern.h>
#include "power.h"
#include "power.h"
...
@@ -14,13 +20,13 @@ int pm_prepare_console(void)
...
@@ -14,13 +20,13 @@ int pm_prepare_console(void)
#ifdef SUSPEND_CONSOLE
#ifdef SUSPEND_CONSOLE
orig_fgconsole
=
fg_console
;
orig_fgconsole
=
fg_console
;
if
(
vc_allocate
(
SUSPEND_CONSOLE
))
if
(
vc_allocate
(
SUSPEND_CONSOLE
))
/* we can't have a free VC for now. Too bad,
/* we can't have a free VC for now. Too bad,
* we don't want to mess the screen for now. */
* we don't want to mess the screen for now. */
return
1
;
return
1
;
set_console
(
SUSPEND_CONSOLE
);
set_console
(
SUSPEND_CONSOLE
);
if
(
vt_waitactive
(
SUSPEND_CONSOLE
))
{
if
(
vt_waitactive
(
SUSPEND_CONSOLE
))
{
pr_debug
(
"Suspend: Can't switch VCs."
);
pr_debug
(
"Suspend: Can't switch VCs."
);
return
1
;
return
1
;
}
}
...
@@ -34,7 +40,7 @@ void pm_restore_console(void)
...
@@ -34,7 +40,7 @@ void pm_restore_console(void)
{
{
console_loglevel
=
orig_loglevel
;
console_loglevel
=
orig_loglevel
;
#ifdef SUSPEND_CONSOLE
#ifdef SUSPEND_CONSOLE
set_console
(
orig_fgconsole
);
set_console
(
orig_fgconsole
);
#endif
#endif
return
;
return
;
}
}
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