Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a889f766
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 2 年 前同步成功
通知
173
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a889f766
编写于
1月 12, 2016
作者:
R
Rafael J. Wysocki
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'powercap'
* powercap: powercap: constify powercap_zone_ops and powercap_zone_constraint_ops structures
上级
8f053a56
600c395b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
13 deletion
+13
-13
drivers/powercap/intel_rapl.c
drivers/powercap/intel_rapl.c
+2
-2
drivers/powercap/powercap_sys.c
drivers/powercap/powercap_sys.c
+9
-9
include/linux/powercap.h
include/linux/powercap.h
+2
-2
未找到文件。
drivers/powercap/intel_rapl.c
浏览文件 @
a889f766
...
...
@@ -388,7 +388,7 @@ static int get_domain_enable(struct powercap_zone *power_zone, bool *mode)
}
/* per RAPL domain ops, in the order of rapl_domain_type */
static
struct
powercap_zone_ops
zone_ops
[]
=
{
static
const
struct
powercap_zone_ops
zone_ops
[]
=
{
/* RAPL_DOMAIN_PACKAGE */
{
.
get_energy_uj
=
get_energy_counter
,
...
...
@@ -584,7 +584,7 @@ static int get_max_power(struct powercap_zone *power_zone, int id,
return
ret
;
}
static
struct
powercap_zone_constraint_ops
constraint_ops
=
{
static
const
struct
powercap_zone_constraint_ops
constraint_ops
=
{
.
set_power_limit_uw
=
set_power_limit
,
.
get_power_limit_uw
=
get_current_power_limit
,
.
set_time_window_us
=
set_time_window
,
...
...
drivers/powercap/powercap_sys.c
浏览文件 @
a889f766
...
...
@@ -293,8 +293,8 @@ static int seed_constraint_attributes(void)
}
static
int
create_constraints
(
struct
powercap_zone
*
power_zone
,
int
nr_constraints
,
struct
powercap_zone_constraint_ops
*
const_ops
)
int
nr_constraints
,
const
struct
powercap_zone_constraint_ops
*
const_ops
)
{
int
i
;
int
ret
=
0
;
...
...
@@ -492,13 +492,13 @@ static struct class powercap_class = {
};
struct
powercap_zone
*
powercap_register_zone
(
struct
powercap_zone
*
power_zone
,
struct
powercap_control_type
*
control_type
,
const
char
*
name
,
struct
powercap_zone
*
parent
,
const
struct
powercap_zone_ops
*
ops
,
int
nr_constraints
,
struct
powercap_zone_constraint_ops
*
const_ops
)
struct
powercap_zone
*
power_zone
,
struct
powercap_control_type
*
control_type
,
const
char
*
name
,
struct
powercap_zone
*
parent
,
const
struct
powercap_zone_ops
*
ops
,
int
nr_constraints
,
const
struct
powercap_zone_constraint_ops
*
const_ops
)
{
int
result
;
int
nr_attrs
;
...
...
include/linux/powercap.h
浏览文件 @
a889f766
...
...
@@ -208,7 +208,7 @@ struct powercap_zone_constraint_ops {
struct
powercap_zone_constraint
{
int
id
;
struct
powercap_zone
*
power_zone
;
struct
powercap_zone_constraint_ops
*
ops
;
const
struct
powercap_zone_constraint_ops
*
ops
;
};
...
...
@@ -309,7 +309,7 @@ struct powercap_zone *powercap_register_zone(
struct
powercap_zone
*
parent
,
const
struct
powercap_zone_ops
*
ops
,
int
nr_constraints
,
struct
powercap_zone_constraint_ops
*
const_ops
);
const
struct
powercap_zone_constraint_ops
*
const_ops
);
/**
* powercap_unregister_zone() - Unregister a zone device
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录