Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
prefetch_tuning
提交
b9e1d645
P
prefetch_tuning
项目概览
openeuler
/
prefetch_tuning
通知
12
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
prefetch_tuning
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b9e1d645
编写于
7月 02, 2020
作者:
L
liqiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Format and specifications
上级
6dab0c6f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
11 deletion
+12
-11
prefetch_mod.c
prefetch_mod.c
+3
-5
prefetch_mod.h
prefetch_mod.h
+9
-6
未找到文件。
prefetch_
tuning
.c
→
prefetch_
mod
.c
浏览文件 @
b9e1d645
...
...
@@ -84,7 +84,7 @@ static ssize_t cache_store(struct device* dev,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
{
ssize_t
ret
;
int
value
;
int
value
=
-
1
;
ret
=
kstrtouint
(
buf
,
0
,
&
value
);
if
(
ret
||
(
value
!=
0
&&
value
!=
1
))
{
...
...
@@ -128,8 +128,8 @@ static ssize_t prefetch_store(struct device* dev,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
{
ssize_t
ret
;
int
policy
;
pr_debug
(
"hello
\n
"
);
int
policy
=
-
1
;
ret
=
kstrtouint
(
buf
,
0
,
&
policy
);
if
(
ret
)
{
pr_err
(
"invalid input
\n
"
);
...
...
@@ -211,7 +211,6 @@ static int __init prefetch_init(void)
{
int
ret
;
int
cpu
;
pr_err
(
"prefetch init enter.
\n
"
);
/* mask: initial a mask */
if
(
!
alloc_cpumask_var
(
&
prefetch_cpumask_value
,
GFP_KERNEL
))
{
ret
=
-
ENOMEM
;
...
...
@@ -250,7 +249,6 @@ pr_err("prefetch init enter.\n");
pr_err
(
"misc register fail
\n
"
);
goto
err_misc_reg
;
}
pr_err
(
"prefetch misc register.
\n
"
);
return
0
;
...
...
prefetch_
tuning
.h
→
prefetch_
mod
.h
浏览文件 @
b9e1d645
#ifndef __PREFETCH_TUNING__
#define __PREFETCH_TUNING__
#define ENABLE 1
#define DISABLE 0
enum
{
DISABLE
=
0
,
ENABLE
};
#define CACHE_READUNIQ_OFFSET 40
#define CACHE_READUNIQ_CTRL (1L << CACHE_READUNIQ_OFFSET)
#ifdef CONFIG_ARCH_HISI
typedef
struct
{
long
cpuprefctrl_el1
;
long
adps_lld_ddr_el1
;
long
adpp_l1v_mop_el1
;
long
adps_lld_l3_el1
;
long
cpuprefctrl_el1
;
long
adps_lld_ddr_el1
;
long
adpp_l1v_mop_el1
;
long
adps_lld_l3_el1
;
}
cfg_t
;
#else
typedef
long
cfg_t
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录