Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
629cf6d7
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
629cf6d7
编写于
6月 23, 2007
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull now into release branch
上级
75154f40
d5a3d32a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
9 deletion
+18
-9
drivers/acpi/processor_idle.c
drivers/acpi/processor_idle.c
+6
-4
drivers/acpi/thermal.c
drivers/acpi/thermal.c
+11
-4
drivers/acpi/utilities/utobject.c
drivers/acpi/utilities/utobject.c
+1
-1
未找到文件。
drivers/acpi/processor_idle.c
浏览文件 @
629cf6d7
...
...
@@ -332,16 +332,18 @@ static void acpi_processor_idle(void)
int
sleep_ticks
=
0
;
u32
t1
,
t2
=
0
;
pr
=
processors
[
smp_processor_id
()];
if
(
!
pr
)
return
;
/*
* Interrupts must be disabled during bus mastering calculations and
* for C2/C3 transitions.
*/
local_irq_disable
();
pr
=
processors
[
smp_processor_id
()];
if
(
!
pr
)
{
local_irq_enable
();
return
;
}
/*
* Check whether we truly need to go idle, or should
* reschedule:
...
...
drivers/acpi/thermal.c
浏览文件 @
629cf6d7
...
...
@@ -828,6 +828,8 @@ static int acpi_thermal_trip_seq_show(struct seq_file *seq, void *offset)
{
struct
acpi_thermal
*
tz
=
seq
->
private
;
struct
acpi_device
*
device
;
acpi_status
status
;
int
i
=
0
;
int
j
=
0
;
...
...
@@ -850,8 +852,10 @@ static int acpi_thermal_trip_seq_show(struct seq_file *seq, void *offset)
tz
->
trips
.
passive
.
tc1
,
tz
->
trips
.
passive
.
tc2
,
tz
->
trips
.
passive
.
tsp
);
for
(
j
=
0
;
j
<
tz
->
trips
.
passive
.
devices
.
count
;
j
++
)
{
acpi_bus_get_device
(
tz
->
trips
.
passive
.
devices
.
handles
[
j
],
&
device
);
seq_printf
(
seq
,
"%4.4s "
,
acpi_device_bid
(
device
));
status
=
acpi_bus_get_device
(
tz
->
trips
.
passive
.
devices
.
handles
[
j
],
&
device
);
seq_printf
(
seq
,
"%4.4s "
,
status
?
""
:
acpi_device_bid
(
device
));
}
seq_puts
(
seq
,
"
\n
"
);
}
...
...
@@ -863,8 +867,11 @@ static int acpi_thermal_trip_seq_show(struct seq_file *seq, void *offset)
i
,
KELVIN_TO_CELSIUS
(
tz
->
trips
.
active
[
i
].
temperature
));
for
(
j
=
0
;
j
<
tz
->
trips
.
active
[
i
].
devices
.
count
;
j
++
){
acpi_bus_get_device
(
tz
->
trips
.
active
[
i
].
devices
.
handles
[
j
],
&
device
);
seq_printf
(
seq
,
"%4.4s "
,
acpi_device_bid
(
device
));
status
=
acpi_bus_get_device
(
tz
->
trips
.
active
[
i
].
devices
.
handles
[
j
],
&
device
);
seq_printf
(
seq
,
"%4.4s "
,
status
?
""
:
acpi_device_bid
(
device
));
}
seq_puts
(
seq
,
"
\n
"
);
}
...
...
drivers/acpi/utilities/utobject.c
浏览文件 @
629cf6d7
...
...
@@ -177,7 +177,7 @@ union acpi_operand_object *acpi_ut_create_package_object(u32 count)
package_elements
=
ACPI_ALLOCATE_ZEROED
((
acpi_size
)
(
count
+
1
)
*
sizeof
(
void
*
));
if
(
!
package_elements
)
{
ACPI_FREE
(
package_desc
);
acpi_ut_remove_reference
(
package_desc
);
return_PTR
(
NULL
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录