Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
b8c475be
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看板
提交
b8c475be
编写于
1月 31, 2006
作者:
L
Linus Torvalds
浏览文件
操作
浏览文件
下载
差异文件
Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/x86
上级
10379a25
6fe8f479
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
13 deletion
+17
-13
arch/i386/kernel/cpu/centaur.c
arch/i386/kernel/cpu/centaur.c
+0
-4
arch/i386/kernel/cpu/intel_cacheinfo.c
arch/i386/kernel/cpu/intel_cacheinfo.c
+11
-0
arch/i386/kernel/cpu/mtrr/main.c
arch/i386/kernel/cpu/mtrr/main.c
+6
-9
未找到文件。
arch/i386/kernel/cpu/centaur.c
浏览文件 @
b8c475be
...
...
@@ -405,10 +405,6 @@ static void __init init_centaur(struct cpuinfo_x86 *c)
winchip2_protect_mcr
();
#endif
break
;
case
10
:
name
=
"4"
;
/* no info on the WC4 yet */
break
;
default:
name
=
"??"
;
}
...
...
arch/i386/kernel/cpu/intel_cacheinfo.c
浏览文件 @
b8c475be
...
...
@@ -43,13 +43,23 @@ static struct _cache_table cache_table[] __cpuinitdata =
{
0x2c
,
LVL_1_DATA
,
32
},
/* 8-way set assoc, 64 byte line size */
{
0x30
,
LVL_1_INST
,
32
},
/* 8-way set assoc, 64 byte line size */
{
0x39
,
LVL_2
,
128
},
/* 4-way set assoc, sectored cache, 64 byte line size */
{
0x3a
,
LVL_2
,
192
},
/* 6-way set assoc, sectored cache, 64 byte line size */
{
0x3b
,
LVL_2
,
128
},
/* 2-way set assoc, sectored cache, 64 byte line size */
{
0x3c
,
LVL_2
,
256
},
/* 4-way set assoc, sectored cache, 64 byte line size */
{
0x3d
,
LVL_2
,
384
},
/* 6-way set assoc, sectored cache, 64 byte line size */
{
0x3e
,
LVL_2
,
512
},
/* 4-way set assoc, sectored cache, 64 byte line size */
{
0x41
,
LVL_2
,
128
},
/* 4-way set assoc, 32 byte line size */
{
0x42
,
LVL_2
,
256
},
/* 4-way set assoc, 32 byte line size */
{
0x43
,
LVL_2
,
512
},
/* 4-way set assoc, 32 byte line size */
{
0x44
,
LVL_2
,
1024
},
/* 4-way set assoc, 32 byte line size */
{
0x45
,
LVL_2
,
2048
},
/* 4-way set assoc, 32 byte line size */
{
0x46
,
LVL_3
,
4096
},
/* 4-way set assoc, 64 byte line size */
{
0x47
,
LVL_3
,
8192
},
/* 8-way set assoc, 64 byte line size */
{
0x49
,
LVL_3
,
4096
},
/* 16-way set assoc, 64 byte line size */
{
0x4a
,
LVL_3
,
6144
},
/* 12-way set assoc, 64 byte line size */
{
0x4b
,
LVL_3
,
8192
},
/* 16-way set assoc, 64 byte line size */
{
0x4c
,
LVL_3
,
12288
},
/* 12-way set assoc, 64 byte line size */
{
0x4d
,
LVL_3
,
16384
},
/* 16-way set assoc, 64 byte line size */
{
0x60
,
LVL_1_DATA
,
16
},
/* 8-way set assoc, sectored cache, 64 byte line size */
{
0x66
,
LVL_1_DATA
,
8
},
/* 4-way set assoc, sectored cache, 64 byte line size */
{
0x67
,
LVL_1_DATA
,
16
},
/* 4-way set assoc, sectored cache, 64 byte line size */
...
...
@@ -57,6 +67,7 @@ static struct _cache_table cache_table[] __cpuinitdata =
{
0x70
,
LVL_TRACE
,
12
},
/* 8-way set assoc */
{
0x71
,
LVL_TRACE
,
16
},
/* 8-way set assoc */
{
0x72
,
LVL_TRACE
,
32
},
/* 8-way set assoc */
{
0x73
,
LVL_TRACE
,
64
},
/* 8-way set assoc */
{
0x78
,
LVL_2
,
1024
},
/* 4-way set assoc, 64 byte line size */
{
0x79
,
LVL_2
,
128
},
/* 8-way set assoc, sectored cache, 64 byte line size */
{
0x7a
,
LVL_2
,
256
},
/* 8-way set assoc, sectored cache, 64 byte line size */
...
...
arch/i386/kernel/cpu/mtrr/main.c
浏览文件 @
b8c475be
...
...
@@ -44,12 +44,10 @@
#include <asm/msr.h>
#include "mtrr.h"
#define MTRR_VERSION "2.0 (20020519)"
u32
num_var_ranges
=
0
;
unsigned
int
*
usage_table
;
static
DECLARE_MUTEX
(
m
ain_lock
);
static
DECLARE_MUTEX
(
m
trr_sem
);
u32
size_or_mask
,
size_and_mask
;
...
...
@@ -335,7 +333,7 @@ int mtrr_add_page(unsigned long base, unsigned long size,
/* No CPU hotplug when we change MTRR entries */
lock_cpu_hotplug
();
/* Search for existing MTRR */
down
(
&
m
ain_lock
);
down
(
&
m
trr_sem
);
for
(
i
=
0
;
i
<
num_var_ranges
;
++
i
)
{
mtrr_if
->
get
(
i
,
&
lbase
,
&
lsize
,
&
ltype
);
if
(
base
>=
lbase
+
lsize
)
...
...
@@ -373,7 +371,7 @@ int mtrr_add_page(unsigned long base, unsigned long size,
printk
(
KERN_INFO
"mtrr: no more MTRRs available
\n
"
);
error
=
i
;
out:
up
(
&
m
ain_lock
);
up
(
&
m
trr_sem
);
unlock_cpu_hotplug
();
return
error
;
}
...
...
@@ -466,7 +464,7 @@ int mtrr_del_page(int reg, unsigned long base, unsigned long size)
max
=
num_var_ranges
;
/* No CPU hotplug when we change MTRR entries */
lock_cpu_hotplug
();
down
(
&
m
ain_lock
);
down
(
&
m
trr_sem
);
if
(
reg
<
0
)
{
/* Search for existing MTRR */
for
(
i
=
0
;
i
<
max
;
++
i
)
{
...
...
@@ -505,7 +503,7 @@ int mtrr_del_page(int reg, unsigned long base, unsigned long size)
set_mtrr
(
reg
,
0
,
0
,
0
);
error
=
reg
;
out:
up
(
&
m
ain_lock
);
up
(
&
m
trr_sem
);
unlock_cpu_hotplug
();
return
error
;
}
...
...
@@ -671,7 +669,6 @@ void __init mtrr_bp_init(void)
break
;
}
}
printk
(
KERN_INFO
"mtrr: v%s
\n
"
,
MTRR_VERSION
);
if
(
mtrr_if
)
{
set_num_var_ranges
();
...
...
@@ -688,7 +685,7 @@ void mtrr_ap_init(void)
if
(
!
mtrr_if
||
!
use_intel
())
return
;
/*
* Ideally we should hold m
ain_lock
here to avoid mtrr entries changed,
* Ideally we should hold m
trr_sem
here to avoid mtrr entries changed,
* but this routine will be called in cpu boot time, holding the lock
* breaks it. This routine is called in two cases: 1.very earily time
* of software resume, when there absolutely isn't mtrr entry changes;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录