Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
1667e399
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1667e399
编写于
12月 15, 2009
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'thermal-2.6.33' into release
上级
abdef01d
3767cb54
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
6 deletion
+19
-6
Documentation/thermal/sysfs-api.txt
Documentation/thermal/sysfs-api.txt
+1
-0
drivers/acpi/thermal.c
drivers/acpi/thermal.c
+7
-0
drivers/thermal/thermal_sys.c
drivers/thermal/thermal_sys.c
+11
-6
未找到文件。
Documentation/thermal/sysfs-api.txt
浏览文件 @
1667e399
...
...
@@ -206,6 +206,7 @@ passive
passive trip point for the zone. Activation is done by polling with
an interval of 1 second.
Unit: millidegrees Celsius
Valid values: 0 (disabled) or greater than 1000
RW, Optional
*****************************
...
...
drivers/acpi/thermal.c
浏览文件 @
1667e399
...
...
@@ -1052,6 +1052,13 @@ static int acpi_thermal_trip_seq_show(struct seq_file *seq, void *offset)
acpi_device_bid
(
device
));
}
seq_puts
(
seq
,
"
\n
"
);
}
else
{
seq_printf
(
seq
,
"passive (forced):"
);
if
(
tz
->
thermal_zone
->
forced_passive
)
seq_printf
(
seq
,
" %i C
\n
"
,
tz
->
thermal_zone
->
forced_passive
/
1000
);
else
seq_printf
(
seq
,
"<not set>
\n
"
);
}
for
(
i
=
0
;
i
<
ACPI_THERMAL_MAX_ACTIVE
;
i
++
)
{
...
...
drivers/thermal/thermal_sys.c
浏览文件 @
1667e399
...
...
@@ -225,6 +225,12 @@ passive_store(struct device *dev, struct device_attribute *attr,
if
(
!
sscanf
(
buf
,
"%d
\n
"
,
&
state
))
return
-
EINVAL
;
/* sanity check: values below 1000 millicelcius don't make sense
* and can cause the system to go into a thermal heart attack
*/
if
(
state
&&
state
<
1000
)
return
-
EINVAL
;
if
(
state
&&
!
tz
->
forced_passive
)
{
mutex_lock
(
&
thermal_list_lock
);
list_for_each_entry
(
cdev
,
&
thermal_cdev_list
,
node
)
{
...
...
@@ -235,6 +241,8 @@ passive_store(struct device *dev, struct device_attribute *attr,
cdev
);
}
mutex_unlock
(
&
thermal_list_lock
);
if
(
!
tz
->
passive_delay
)
tz
->
passive_delay
=
1000
;
}
else
if
(
!
state
&&
tz
->
forced_passive
)
{
mutex_lock
(
&
thermal_list_lock
);
list_for_each_entry
(
cdev
,
&
thermal_cdev_list
,
node
)
{
...
...
@@ -245,17 +253,12 @@ passive_store(struct device *dev, struct device_attribute *attr,
cdev
);
}
mutex_unlock
(
&
thermal_list_lock
);
tz
->
passive_delay
=
0
;
}
tz
->
tc1
=
1
;
tz
->
tc2
=
1
;
if
(
!
tz
->
passive_delay
)
tz
->
passive_delay
=
1000
;
if
(
!
tz
->
polling_delay
)
tz
->
polling_delay
=
10000
;
tz
->
forced_passive
=
state
;
thermal_zone_device_update
(
tz
);
...
...
@@ -1016,6 +1019,8 @@ void thermal_zone_device_update(struct thermal_zone_device *tz)
thermal_zone_device_set_polling
(
tz
,
tz
->
passive_delay
);
else
if
(
tz
->
polling_delay
)
thermal_zone_device_set_polling
(
tz
,
tz
->
polling_delay
);
else
thermal_zone_device_set_polling
(
tz
,
0
);
mutex_unlock
(
&
tz
->
lock
);
}
EXPORT_SYMBOL
(
thermal_zone_device_update
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录