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
7a399df6
Commit
7a399df6
authored
Aug 21, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[apm] Fix calls to device_{suspend,resume}
parent
ab207bea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/i386/kernel/apm.c
arch/i386/kernel/apm.c
+3
-3
No files found.
arch/i386/kernel/apm.c
View file @
7a399df6
...
...
@@ -1198,7 +1198,7 @@ static int suspend(int vetoable)
printk
(
KERN_CRIT
"apm: suspend was vetoed, but suspending anyway.
\n
"
);
}
device_suspend
(
3
,
SUSPEND_POWER_DOWN
);
device_suspend
(
3
);
/* serialize with the timer interrupt */
write_seqlock_irq
(
&
xtime_lock
);
...
...
@@ -1232,7 +1232,7 @@ static int suspend(int vetoable)
if
(
err
!=
APM_SUCCESS
)
apm_error
(
"suspend"
,
err
);
err
=
(
err
==
APM_SUCCESS
)
?
0
:
-
EIO
;
device_resume
(
RESUME_POWER_ON
);
device_resume
();
pm_send_all
(
PM_RESUME
,
(
void
*
)
0
);
queue_event
(
APM_NORMAL_RESUME
,
NULL
);
out:
...
...
@@ -1346,7 +1346,7 @@ static void check_events(void)
write_seqlock_irq
(
&
xtime_lock
);
set_time
();
write_sequnlock_irq
(
&
xtime_lock
);
device_resume
(
RESUME_POWER_ON
);
device_resume
();
pm_send_all
(
PM_RESUME
,
(
void
*
)
0
);
queue_event
(
event
,
NULL
);
}
...
...
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