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
7dac562f
Commit
7dac562f
authored
Nov 30, 2005
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Pull 5165 into release branch
parents
3141b670
4c033552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+24
-5
No files found.
drivers/acpi/processor_idle.c
View file @
7dac562f
...
@@ -280,6 +280,16 @@ static void acpi_processor_idle(void)
...
@@ -280,6 +280,16 @@ static void acpi_processor_idle(void)
cx
->
usage
++
;
cx
->
usage
++
;
#ifdef CONFIG_HOTPLUG_CPU
/*
* Check for P_LVL2_UP flag before entering C2 and above on
* an SMP system. We do it here instead of doing it at _CST/P_LVL
* detection phase, to work cleanly with logical CPU hotplug.
*/
if
((
cx
->
type
!=
ACPI_STATE_C1
)
&&
(
num_online_cpus
()
>
1
)
&&
!
pr
->
flags
.
has_cst
&&
acpi_fadt
.
plvl2_up
)
cx
->
type
=
ACPI_STATE_C1
;
#endif
/*
/*
* Sleep:
* Sleep:
* ------
* ------
...
@@ -534,6 +544,15 @@ static int acpi_processor_get_power_info_fadt(struct acpi_processor *pr)
...
@@ -534,6 +544,15 @@ static int acpi_processor_get_power_info_fadt(struct acpi_processor *pr)
pr
->
power
.
states
[
ACPI_STATE_C0
].
valid
=
1
;
pr
->
power
.
states
[
ACPI_STATE_C0
].
valid
=
1
;
pr
->
power
.
states
[
ACPI_STATE_C1
].
valid
=
1
;
pr
->
power
.
states
[
ACPI_STATE_C1
].
valid
=
1
;
#ifndef CONFIG_HOTPLUG_CPU
/*
* Check for P_LVL2_UP flag before entering C2 and above on
* an SMP system.
*/
if
((
num_online_cpus
()
>
1
)
&&
acpi_fadt
.
plvl2_up
)
return_VALUE
(
-
ENODEV
);
#endif
/* determine C2 and C3 address from pblk */
/* determine C2 and C3 address from pblk */
pr
->
power
.
states
[
ACPI_STATE_C2
].
address
=
pr
->
pblk
+
4
;
pr
->
power
.
states
[
ACPI_STATE_C2
].
address
=
pr
->
pblk
+
4
;
pr
->
power
.
states
[
ACPI_STATE_C3
].
address
=
pr
->
pblk
+
5
;
pr
->
power
.
states
[
ACPI_STATE_C3
].
address
=
pr
->
pblk
+
5
;
...
@@ -690,7 +709,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
...
@@ -690,7 +709,7 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
/* Validate number of power states discovered */
/* Validate number of power states discovered */
if
(
pr
->
power
.
count
<
2
)
if
(
pr
->
power
.
count
<
2
)
status
=
-
E
NODEV
;
status
=
-
E
FAULT
;
end:
end:
acpi_os_free
(
buffer
.
pointer
);
acpi_os_free
(
buffer
.
pointer
);
...
@@ -841,11 +860,11 @@ static int acpi_processor_get_power_info(struct acpi_processor *pr)
...
@@ -841,11 +860,11 @@ static int acpi_processor_get_power_info(struct acpi_processor *pr)
* this function */
* this function */
result
=
acpi_processor_get_power_info_cst
(
pr
);
result
=
acpi_processor_get_power_info_cst
(
pr
);
if
(
(
result
)
||
(
acpi_processor_power_verify
(
pr
)
<
2
))
{
if
(
result
==
-
ENODEV
)
result
=
acpi_processor_get_power_info_fadt
(
pr
);
result
=
acpi_processor_get_power_info_fadt
(
pr
);
if
((
result
)
||
(
acpi_processor_power_verify
(
pr
)
<
2
))
result
=
acpi_processor_get_power_info_default_c1
(
pr
);
if
((
result
)
||
(
acpi_processor_power_verify
(
pr
)
<
2
))
}
result
=
acpi_processor_get_power_info_default_c1
(
pr
);
/*
/*
* Set Default Policy
* Set Default Policy
...
...
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