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
bee5ab3f
Commit
bee5ab3f
authored
Dec 21, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release' of
git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
parents
b05948d9
5b2db367
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+15
-5
No files found.
drivers/acpi/processor_idle.c
View file @
bee5ab3f
...
...
@@ -274,8 +274,6 @@ static void acpi_processor_idle(void)
}
}
cx
->
usage
++
;
#ifdef CONFIG_HOTPLUG_CPU
/*
* Check for P_LVL2_UP flag before entering C2 and above on
...
...
@@ -283,9 +281,12 @@ static void acpi_processor_idle(void)
* 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
;
!
pr
->
flags
.
has_cst
&&
!
acpi_fadt
.
plvl2_up
)
cx
=
&
pr
->
power
.
states
[
ACPI_STATE_C1
]
;
#endif
cx
->
usage
++
;
/*
* Sleep:
* ------
...
...
@@ -386,6 +387,15 @@ static void acpi_processor_idle(void)
next_state
=
pr
->
power
.
state
;
#ifdef CONFIG_HOTPLUG_CPU
/* Don't do promotion/demotion */
if
((
cx
->
type
==
ACPI_STATE_C1
)
&&
(
num_online_cpus
()
>
1
)
&&
!
pr
->
flags
.
has_cst
&&
!
acpi_fadt
.
plvl2_up
)
{
next_state
=
cx
;
goto
end
;
}
#endif
/*
* Promotion?
* ----------
...
...
@@ -557,7 +567,7 @@ static int acpi_processor_get_power_info_fadt(struct acpi_processor *pr)
* Check for P_LVL2_UP flag before entering C2 and above on
* an SMP system.
*/
if
((
num_online_cpus
()
>
1
)
&&
acpi_fadt
.
plvl2_up
)
if
((
num_online_cpus
()
>
1
)
&&
!
acpi_fadt
.
plvl2_up
)
return_VALUE
(
-
ENODEV
);
#endif
...
...
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