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
855977ef
Commit
855977ef
authored
Jul 22, 2010
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bugzilla-16271' into release
parents
840ba24d
3d695839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
drivers/acpi/acpica/evxfevnt.c
drivers/acpi/acpica/evxfevnt.c
+11
-8
No files found.
drivers/acpi/acpica/evxfevnt.c
View file @
855977ef
...
...
@@ -70,6 +70,7 @@ acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
acpi_status
acpi_enable
(
void
)
{
acpi_status
status
;
int
retry
;
ACPI_FUNCTION_TRACE
(
acpi_enable
);
...
...
@@ -98,16 +99,18 @@ acpi_status acpi_enable(void)
/* Sanity check that transition succeeded */
if
(
acpi_hw_get_mode
()
!=
ACPI_SYS_MODE_ACPI
)
{
ACPI_ERROR
((
AE_INFO
,
"Hardware did not enter ACPI mode"
));
return_ACPI_STATUS
(
AE_NO_HARDWARE_RESPONSE
);
for
(
retry
=
0
;
retry
<
30000
;
++
retry
)
{
if
(
acpi_hw_get_mode
()
==
ACPI_SYS_MODE_ACPI
)
{
if
(
retry
!=
0
)
ACPI_WARNING
((
AE_INFO
,
"Platform took > %d00 usec to enter ACPI mode"
,
retry
));
return_ACPI_STATUS
(
AE_OK
);
}
acpi_os_stall
(
100
);
/* 100 usec */
}
ACPI_DEBUG_PRINT
((
ACPI_DB_INIT
,
"Transition to ACPI mode successful
\n
"
));
return_ACPI_STATUS
(
AE_OK
);
ACPI_ERROR
((
AE_INFO
,
"Hardware did not enter ACPI mode"
));
return_ACPI_STATUS
(
AE_NO_HARDWARE_RESPONSE
);
}
ACPI_EXPORT_SYMBOL
(
acpi_enable
)
...
...
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