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
7f1ba7ac
Commit
7f1ba7ac
authored
Aug 18, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[acpi] Update comments, copyright, and license in drivers/acpi/sleep/main.c
parent
dcc1ff98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
drivers/acpi/sleep/main.c
drivers/acpi/sleep/main.c
+26
-5
No files found.
drivers/acpi/sleep/main.c
View file @
7f1ba7ac
/*
* sleep.c - ACPI sleep support.
*
* Copyright (c) 2000-2003 Patrick Mochel
*
* Portions are
* Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
* Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
* Copyright (c) 2000-2003 Patrick Mochel
* Copyright (c) 2003 Open Source Development Lab
*
* This file is released under the GPLv2.
*
*/
#include <linux/delay.h>
...
...
@@ -32,6 +32,9 @@ static u32 acpi_suspend_states[] = {
* acpi_pm_prepare - Do preliminary suspend work.
* @state: suspend state we're entering.
*
* Make sure we support the state. If we do, and we need it, set the
* firmware waking vector and do arch-specific nastiness to get the
* wakeup code to the waking vector.
*/
static
int
acpi_pm_prepare
(
u32
state
)
...
...
@@ -69,6 +72,15 @@ static int acpi_pm_prepare(u32 state)
}
/**
* acpi_pm_enter - Actually enter a sleep state.
* @state: State we're entering.
*
* Flush caches and go to sleep. For STR or STD, we have to call
* arch-specific assembly, which in turn call acpi_enter_sleep_state().
* It's unfortunate, but it works. Please fix if you're feeling frisky.
*/
static
int
acpi_pm_enter
(
u32
state
)
{
acpi_status
status
=
AE_OK
;
...
...
@@ -99,6 +111,15 @@ static int acpi_pm_enter(u32 state)
return
ACPI_SUCCESS
(
status
)
?
0
:
-
EFAULT
;
}
/**
* acpi_pm_finish - Finish up suspend sequence.
* @state: State we're coming out of.
*
* This is called after we wake back up (or if entering the sleep state
* failed).
*/
static
int
acpi_pm_finish
(
u32
state
)
{
acpi_leave_sleep_state
(
state
);
...
...
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