Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
519ef1af
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看板
提交
519ef1af
编写于
8月 24, 2007
作者:
L
Len Brown
浏览文件
操作
浏览文件
下载
差异文件
Pull thermal into release branch
上级
b7011d53
2db9ccba
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
7 deletion
+44
-7
Documentation/kernel-parameters.txt
Documentation/kernel-parameters.txt
+4
-0
drivers/acpi/thermal.c
drivers/acpi/thermal.c
+40
-7
未找到文件。
Documentation/kernel-parameters.txt
浏览文件 @
519ef1af
...
...
@@ -1823,6 +1823,10 @@ and is between 256 and 4096 characters. It is defined in the file
-1: disable all active trip points in all thermal zones
<degrees C>: override all lowest active trip points
thermal.crt= [HW,ACPI]
-1: disable all critical trip points in all thermal zones
<degrees C>: lower all critical trip points
thermal.nocrt= [HW,ACPI]
Set to disable actions on ACPI thermal zone
critical and hot trip points.
...
...
drivers/acpi/thermal.c
浏览文件 @
519ef1af
...
...
@@ -77,23 +77,27 @@ MODULE_LICENSE("GPL");
static
int
act
;
module_param
(
act
,
int
,
0644
);
MODULE_PARM_DESC
(
act
,
"Disable or override all lowest active trip points.
\n
"
);
MODULE_PARM_DESC
(
act
,
"Disable or override all lowest active trip points."
);
static
int
crt
;
module_param
(
crt
,
int
,
0644
);
MODULE_PARM_DESC
(
crt
,
"Disable or lower all critical trip points."
);
static
int
tzp
;
module_param
(
tzp
,
int
,
0444
);
MODULE_PARM_DESC
(
tzp
,
"Thermal zone polling frequency, in 1/10 seconds.
\n
"
);
MODULE_PARM_DESC
(
tzp
,
"Thermal zone polling frequency, in 1/10 seconds."
);
static
int
nocrt
;
module_param
(
nocrt
,
int
,
0
);
MODULE_PARM_DESC
(
nocrt
,
"Set to
disable action on ACPI thermal zone critical and hot trips.
\n
"
);
MODULE_PARM_DESC
(
nocrt
,
"Set to
take no action upon ACPI thermal zone critical trips points.
"
);
static
int
off
;
module_param
(
off
,
int
,
0
);
MODULE_PARM_DESC
(
off
,
"Set to disable ACPI thermal support.
\n
"
);
MODULE_PARM_DESC
(
off
,
"Set to disable ACPI thermal support."
);
static
int
psv
;
module_param
(
psv
,
int
,
0644
);
MODULE_PARM_DESC
(
psv
,
"Disable or override all passive trip points.
\n
"
);
MODULE_PARM_DESC
(
psv
,
"Disable or override all passive trip points."
);
static
int
acpi_thermal_add
(
struct
acpi_device
*
device
);
static
int
acpi_thermal_remove
(
struct
acpi_device
*
device
,
int
type
);
...
...
@@ -340,6 +344,20 @@ static int acpi_thermal_get_trip_points(struct acpi_thermal *tz)
tz
->
trips
.
critical
.
temperature
));
}
if
(
tz
->
trips
.
critical
.
flags
.
valid
==
1
)
{
if
(
crt
==
-
1
)
{
tz
->
trips
.
critical
.
flags
.
valid
=
0
;
}
else
if
(
crt
>
0
)
{
unsigned
long
crt_k
=
CELSIUS_TO_KELVIN
(
crt
);
/*
* Allow override to lower critical threshold
*/
if
(
crt_k
<
tz
->
trips
.
critical
.
temperature
)
tz
->
trips
.
critical
.
temperature
=
crt_k
;
}
}
/* Critical Sleep (optional) */
status
=
...
...
@@ -1067,9 +1085,9 @@ static int acpi_thermal_add_fs(struct acpi_device *device)
entry
->
owner
=
THIS_MODULE
;
}
/* 'trip_points' [R
/W
] */
/* 'trip_points' [R] */
entry
=
create_proc_entry
(
ACPI_THERMAL_FILE_TRIP_POINTS
,
S_I
FREG
|
S_IRUGO
|
S_IWUSR
,
S_I
RUGO
,
acpi_device_dir
(
device
));
if
(
!
entry
)
return
-
ENODEV
;
...
...
@@ -1339,6 +1357,13 @@ static int thermal_act(struct dmi_system_id *d) {
}
return
0
;
}
static
int
thermal_nocrt
(
struct
dmi_system_id
*
d
)
{
printk
(
KERN_NOTICE
"ACPI: %s detected: "
"disabling all critical thermal trip point actions.
\n
"
,
d
->
ident
);
nocrt
=
1
;
return
0
;
}
static
int
thermal_tzp
(
struct
dmi_system_id
*
d
)
{
if
(
tzp
==
0
)
{
...
...
@@ -1387,6 +1412,14 @@ static struct dmi_system_id thermal_dmi_table[] __initdata = {
DMI_MATCH
(
DMI_BOARD_NAME
,
"i915GMm-HFS"
),
},
},
{
.
callback
=
thermal_nocrt
,
.
ident
=
"Gigabyte GA-7ZX"
,
.
matches
=
{
DMI_MATCH
(
DMI_BOARD_VENDOR
,
"Gigabyte Technology Co., Ltd."
),
DMI_MATCH
(
DMI_BOARD_NAME
,
"7ZX"
),
},
},
{}
};
#endif
/* CONFIG_DMI */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录