Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
9c33eef8
K
Kernel
项目概览
openeuler
/
Kernel
大约 2 年 前同步成功
通知
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看板
提交
9c33eef8
编写于
12月 14, 2021
作者:
R
Rafael J. Wysocki
浏览文件
操作
浏览文件
下载
差异文件
Merge back int340x driver material for 5.17.
上级
f872f736
764cedc5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
29 addition
and
24 deletion
+29
-24
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
+3
-2
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
+26
-22
未找到文件。
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
浏览文件 @
9c33eef8
...
@@ -250,8 +250,9 @@ static int fill_art(char __user *ubuf)
...
@@ -250,8 +250,9 @@ static int fill_art(char __user *ubuf)
get_single_name
(
arts
[
i
].
source
,
art_user
[
i
].
source_device
);
get_single_name
(
arts
[
i
].
source
,
art_user
[
i
].
source_device
);
get_single_name
(
arts
[
i
].
target
,
art_user
[
i
].
target_device
);
get_single_name
(
arts
[
i
].
target
,
art_user
[
i
].
target_device
);
/* copy the rest int data in addition to source and target */
/* copy the rest int data in addition to source and target */
memcpy
(
&
art_user
[
i
].
weight
,
&
arts
[
i
].
weight
,
BUILD_BUG_ON
(
sizeof
(
art_user
[
i
].
data
)
!=
sizeof
(
u64
)
*
(
ACPI_NR_ART_ELEMENTS
-
2
));
sizeof
(
u64
)
*
(
ACPI_NR_ART_ELEMENTS
-
2
));
memcpy
(
&
art_user
[
i
].
data
,
&
arts
[
i
].
data
,
sizeof
(
art_user
[
i
].
data
));
}
}
if
(
copy_to_user
(
ubuf
,
art_user
,
art_len
))
if
(
copy_to_user
(
ubuf
,
art_user
,
art_len
))
...
...
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
浏览文件 @
9c33eef8
...
@@ -17,17 +17,19 @@
...
@@ -17,17 +17,19 @@
struct
art
{
struct
art
{
acpi_handle
source
;
acpi_handle
source
;
acpi_handle
target
;
acpi_handle
target
;
u64
weight
;
struct_group
(
data
,
u64
ac0_max
;
u64
weight
;
u64
ac1_max
;
u64
ac0_max
;
u64
ac2_max
;
u64
ac1_max
;
u64
ac3_max
;
u64
ac2_max
;
u64
ac4_max
;
u64
ac3_max
;
u64
ac5_max
;
u64
ac4_max
;
u64
ac6_max
;
u64
ac5_max
;
u64
ac7_max
;
u64
ac6_max
;
u64
ac8_max
;
u64
ac7_max
;
u64
ac9_max
;
u64
ac8_max
;
u64
ac9_max
;
);
}
__packed
;
}
__packed
;
struct
trt
{
struct
trt
{
...
@@ -47,17 +49,19 @@ union art_object {
...
@@ -47,17 +49,19 @@ union art_object {
struct
{
struct
{
char
source_device
[
8
];
/* ACPI single name */
char
source_device
[
8
];
/* ACPI single name */
char
target_device
[
8
];
/* ACPI single name */
char
target_device
[
8
];
/* ACPI single name */
u64
weight
;
struct_group
(
data
,
u64
ac0_max_level
;
u64
weight
;
u64
ac1_max_level
;
u64
ac0_max_level
;
u64
ac2_max_level
;
u64
ac1_max_level
;
u64
ac3_max_level
;
u64
ac2_max_level
;
u64
ac4_max_level
;
u64
ac3_max_level
;
u64
ac5_max_level
;
u64
ac4_max_level
;
u64
ac6_max_level
;
u64
ac5_max_level
;
u64
ac7_max_level
;
u64
ac6_max_level
;
u64
ac8_max_level
;
u64
ac7_max_level
;
u64
ac9_max_level
;
u64
ac8_max_level
;
u64
ac9_max_level
;
);
};
};
u64
__data
[
ACPI_NR_ART_ELEMENTS
];
u64
__data
[
ACPI_NR_ART_ELEMENTS
];
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录