Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
f03b8a54
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看板
提交
f03b8a54
编写于
2月 15, 2006
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SPARC64]: Use different cache sizing defaults on SUN4V.
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
329c68b2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
48 addition
and
14 deletion
+48
-14
arch/sparc64/kernel/devices.c
arch/sparc64/kernel/devices.c
+27
-7
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+21
-7
未找到文件。
arch/sparc64/kernel/devices.c
浏览文件 @
f03b8a54
...
...
@@ -200,7 +200,8 @@ void __init device_scan(void)
#ifndef CONFIG_SMP
{
int
err
,
cpu_node
;
int
err
,
cpu_node
,
def
;
err
=
cpu_find_by_instance
(
0
,
&
cpu_node
,
NULL
);
if
(
err
)
{
prom_printf
(
"No cpu nodes, cannot continue
\n
"
);
...
...
@@ -209,21 +210,40 @@ void __init device_scan(void)
cpu_data
(
0
).
clock_tick
=
prom_getintdefault
(
cpu_node
,
"clock-frequency"
,
0
);
def
=
((
tlb_type
==
hypervisor
)
?
(
8
*
1024
)
:
(
16
*
1024
));
cpu_data
(
0
).
dcache_size
=
prom_getintdefault
(
cpu_node
,
"dcache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
0
).
dcache_line_size
=
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
def
);
def
=
16
*
1024
;
cpu_data
(
0
).
icache_size
=
prom_getintdefault
(
cpu_node
,
"icache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
0
).
icache_line_size
=
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
def
);
def
=
((
tlb_type
==
hypervisor
)
?
(
3
*
1024
*
1024
)
:
(
4
*
1024
*
1024
));
cpu_data
(
0
).
ecache_size
=
prom_getintdefault
(
cpu_node
,
"ecache-size"
,
4
*
1024
*
1024
);
def
);
def
=
64
;
cpu_data
(
0
).
ecache_line_size
=
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
64
);
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
def
);
printk
(
"CPU[0]: Caches "
"D[sz(%d):line_sz(%d)] "
"I[sz(%d):line_sz(%d)] "
...
...
arch/sparc64/kernel/smp.c
浏览文件 @
f03b8a54
...
...
@@ -78,7 +78,7 @@ void smp_bogo(struct seq_file *m)
void
__init
smp_store_cpu_info
(
int
id
)
{
int
cpu_node
;
int
cpu_node
,
def
;
/* multiplier and counter set by
smp_setup_percpu_timer() */
...
...
@@ -90,18 +90,32 @@ void __init smp_store_cpu_info(int id)
cpu_data
(
id
).
idle_volume
=
1
;
def
=
((
tlb_type
==
hypervisor
)
?
(
8
*
1024
)
:
(
16
*
1024
));
cpu_data
(
id
).
dcache_size
=
prom_getintdefault
(
cpu_node
,
"dcache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
id
).
dcache_line_size
=
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
def
);
def
=
16
*
1024
;
cpu_data
(
id
).
icache_size
=
prom_getintdefault
(
cpu_node
,
"icache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
id
).
icache_line_size
=
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
def
);
def
=
((
tlb_type
==
hypervisor
)
?
(
3
*
1024
*
1024
)
:
(
4
*
1024
*
1024
));
cpu_data
(
id
).
ecache_size
=
prom_getintdefault
(
cpu_node
,
"ecache-size"
,
4
*
1024
*
1024
);
def
);
def
=
64
;
cpu_data
(
id
).
ecache_line_size
=
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
64
);
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
def
);
printk
(
"CPU[%d]: Caches "
"D[sz(%d):line_sz(%d)] "
"I[sz(%d):line_sz(%d)] "
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录