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
313ba573
Commit
313ba573
authored
Aug 19, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[acpi] Always handle requests for entering S4, not just for S4bios.
parent
4db33583
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drivers/acpi/sleep/main.c
drivers/acpi/sleep/main.c
+8
-2
No files found.
drivers/acpi/sleep/main.c
View file @
313ba573
...
@@ -18,6 +18,8 @@
...
@@ -18,6 +18,8 @@
u8
sleep_states
[
ACPI_S_STATE_COUNT
];
u8
sleep_states
[
ACPI_S_STATE_COUNT
];
static
struct
pm_ops
acpi_pm_ops
;
extern
void
do_suspend_lowlevel_s4bios
(
int
);
extern
void
do_suspend_lowlevel_s4bios
(
int
);
extern
void
do_suspend_lowlevel
(
int
);
extern
void
do_suspend_lowlevel
(
int
);
...
@@ -85,6 +87,7 @@ static int acpi_pm_enter(u32 state)
...
@@ -85,6 +87,7 @@ static int acpi_pm_enter(u32 state)
{
{
acpi_status
status
=
AE_OK
;
acpi_status
status
=
AE_OK
;
unsigned
long
flags
=
0
;
unsigned
long
flags
=
0
;
u32
acpi_state
=
acpi_suspend_states
[
state
];
ACPI_FLUSH_CPU_CACHE
();
ACPI_FLUSH_CPU_CACHE
();
local_irq_save
(
flags
);
local_irq_save
(
flags
);
...
@@ -92,7 +95,7 @@ static int acpi_pm_enter(u32 state)
...
@@ -92,7 +95,7 @@ static int acpi_pm_enter(u32 state)
{
{
case
PM_SUSPEND_STANDBY
:
case
PM_SUSPEND_STANDBY
:
barrier
();
barrier
();
status
=
acpi_enter_sleep_state
(
acpi_s
uspend_states
[
state
]
);
status
=
acpi_enter_sleep_state
(
acpi_s
tate
);
break
;
break
;
case
PM_SUSPEND_MEM
:
case
PM_SUSPEND_MEM
:
...
@@ -100,7 +103,10 @@ static int acpi_pm_enter(u32 state)
...
@@ -100,7 +103,10 @@ static int acpi_pm_enter(u32 state)
break
;
break
;
case
PM_SUSPEND_DISK
:
case
PM_SUSPEND_DISK
:
do_suspend_lowlevel_s4bios
(
0
);
if
(
acpi_pm_ops
.
pm_disk_mode
==
PM_DISK_PLATFORM
)
status
=
acpi_enter_sleep_state
(
acpi_state
);
else
do_suspend_lowlevel_s4bios
(
0
);
break
;
break
;
default:
default:
return
-
EINVAL
;
return
-
EINVAL
;
...
...
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