Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
361243fd
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
361243fd
编写于
1月 20, 2010
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'bugzilla-15064' into release
上级
49897dee
d22edd29
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
38 deletion
+26
-38
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+26
-38
未找到文件。
drivers/acpi/processor_idle.c
浏览文件 @
361243fd
...
...
@@ -305,6 +305,28 @@ static int acpi_processor_get_power_info_fadt(struct acpi_processor *pr)
pr
->
power
.
states
[
ACPI_STATE_C2
].
latency
=
acpi_gbl_FADT
.
C2latency
;
pr
->
power
.
states
[
ACPI_STATE_C3
].
latency
=
acpi_gbl_FADT
.
C3latency
;
/*
* FADT specified C2 latency must be less than or equal to
* 100 microseconds.
*/
if
(
acpi_gbl_FADT
.
C2latency
>
ACPI_PROCESSOR_MAX_C2_LATENCY
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"C2 latency too large [%d]
\n
"
,
acpi_gbl_FADT
.
C2latency
));
/* invalidate C2 */
pr
->
power
.
states
[
ACPI_STATE_C2
].
address
=
0
;
}
/*
* FADT supplied C3 latency must be less than or equal to
* 1000 microseconds.
*/
if
(
acpi_gbl_FADT
.
C3latency
>
ACPI_PROCESSOR_MAX_C3_LATENCY
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"C3 latency too large [%d]
\n
"
,
acpi_gbl_FADT
.
C3latency
));
/* invalidate C3 */
pr
->
power
.
states
[
ACPI_STATE_C3
].
address
=
0
;
}
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"lvl2[0x%08x] lvl3[0x%08x]
\n
"
,
pr
->
power
.
states
[
ACPI_STATE_C2
].
address
,
...
...
@@ -494,33 +516,6 @@ static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
return
status
;
}
static
void
acpi_processor_power_verify_c2
(
struct
acpi_processor_cx
*
cx
)
{
if
(
!
cx
->
address
)
return
;
/*
* C2 latency must be less than or equal to 100
* microseconds.
*/
else
if
(
cx
->
latency
>
ACPI_PROCESSOR_MAX_C2_LATENCY
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"latency too large [%d]
\n
"
,
cx
->
latency
));
return
;
}
/*
* Otherwise we've met all of our C2 requirements.
* Normalize the C2 latency to expidite policy
*/
cx
->
valid
=
1
;
cx
->
latency_ticks
=
cx
->
latency
;
return
;
}
static
void
acpi_processor_power_verify_c3
(
struct
acpi_processor
*
pr
,
struct
acpi_processor_cx
*
cx
)
{
...
...
@@ -531,16 +526,6 @@ static void acpi_processor_power_verify_c3(struct acpi_processor *pr,
if
(
!
cx
->
address
)
return
;
/*
* C3 latency must be less than or equal to 1000
* microseconds.
*/
else
if
(
cx
->
latency
>
ACPI_PROCESSOR_MAX_C3_LATENCY
)
{
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"latency too large [%d]
\n
"
,
cx
->
latency
));
return
;
}
/*
* PIIX4 Erratum #18: We don't support C3 when Type-F (fast)
* DMA transfers are used by any ISA device to avoid livelock.
...
...
@@ -629,7 +614,10 @@ static int acpi_processor_power_verify(struct acpi_processor *pr)
break
;
case
ACPI_STATE_C2
:
acpi_processor_power_verify_c2
(
cx
);
if
(
!
cx
->
address
)
break
;
cx
->
valid
=
1
;
cx
->
latency_ticks
=
cx
->
latency
;
/* Normalize latency */
break
;
case
ACPI_STATE_C3
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录