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
f752a091
Commit
f752a091
authored
Apr 24, 2009
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'idle' into release
parents
6e6c348f
92614610
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+6
-13
include/acpi/processor.h
include/acpi/processor.h
+0
-1
No files found.
drivers/acpi/processor_idle.c
View file @
f752a091
...
...
@@ -581,6 +581,11 @@ static int acpi_processor_power_verify(struct acpi_processor *pr)
for
(
i
=
1
;
i
<
ACPI_PROCESSOR_MAX_POWER
;
i
++
)
{
struct
acpi_processor_cx
*
cx
=
&
pr
->
power
.
states
[
i
];
#if defined (CONFIG_GENERIC_TIME) && defined (CONFIG_X86)
/* TSC could halt in idle, so notify users */
if
(
tsc_halts_in_c
(
cx
->
type
))
mark_tsc_unstable
(
"TSC halts in idle"
);;
#endif
switch
(
cx
->
type
)
{
case
ACPI_STATE_C1
:
cx
->
valid
=
1
;
...
...
@@ -657,11 +662,9 @@ static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
seq_printf
(
seq
,
"active state: C%zd
\n
"
"max_cstate: C%d
\n
"
"bus master activity: %08x
\n
"
"maximum allowed latency: %d usec
\n
"
,
pr
->
power
.
state
?
pr
->
power
.
state
-
pr
->
power
.
states
:
0
,
max_cstate
,
(
unsigned
)
pr
->
power
.
bm_activity
,
pm_qos_requirement
(
PM_QOS_CPU_DMA_LATENCY
));
max_cstate
,
pm_qos_requirement
(
PM_QOS_CPU_DMA_LATENCY
));
seq_puts
(
seq
,
"states:
\n
"
);
...
...
@@ -871,11 +874,6 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev,
kt2
=
ktime_get_real
();
idle_time
=
ktime_to_us
(
ktime_sub
(
kt2
,
kt1
));
#if defined (CONFIG_GENERIC_TIME) && defined (CONFIG_X86)
/* TSC could halt in idle, so notify users */
if
(
tsc_halts_in_c
(
cx
->
type
))
mark_tsc_unstable
(
"TSC halts in idle"
);;
#endif
sleep_ticks
=
us_to_pm_timer_ticks
(
idle_time
);
/* Tell the scheduler how much we idled: */
...
...
@@ -989,11 +987,6 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev,
spin_unlock
(
&
c3_lock
);
}
#if defined (CONFIG_GENERIC_TIME) && defined (CONFIG_X86)
/* TSC could halt in idle, so notify users */
if
(
tsc_halts_in_c
(
ACPI_STATE_C3
))
mark_tsc_unstable
(
"TSC halts in idle"
);
#endif
sleep_ticks
=
us_to_pm_timer_ticks
(
idle_time
);
/* Tell the scheduler how much we idled: */
sched_clock_idle_wakeup_event
(
sleep_ticks
*
PM_TIMER_TICK_NS
);
...
...
include/acpi/processor.h
View file @
f752a091
...
...
@@ -84,7 +84,6 @@ struct acpi_processor_power {
struct
acpi_processor_cx
*
state
;
unsigned
long
bm_check_timestamp
;
u32
default_state
;
u32
bm_activity
;
int
count
;
struct
acpi_processor_cx
states
[
ACPI_PROCESSOR_MAX_POWER
];
int
timer_broadcast_on_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