Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f752a091
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f752a091
编写于
4月 24, 2009
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'idle' into release
上级
6e6c348f
92614610
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
14 deletion
+6
-14
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+6
-13
include/acpi/processor.h
include/acpi/processor.h
+0
-1
未找到文件。
drivers/acpi/processor_idle.c
浏览文件 @
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
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录