Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
fc632575
cloud-kernel
项目概览
openanolis
/
cloud-kernel
接近 2 年 前同步成功
通知
169
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看板
提交
fc632575
编写于
12月 12, 2015
作者:
H
Helge Deller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
parisc: Reduce overhead of parisc_requires_coherency()
Signed-off-by:
N
Helge Deller
<
deller@gmx.de
>
上级
602c9c9a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
10 deletion
+17
-10
arch/parisc/include/asm/processor.h
arch/parisc/include/asm/processor.h
+8
-9
arch/parisc/kernel/processor.c
arch/parisc/kernel/processor.c
+9
-1
未找到文件。
arch/parisc/include/asm/processor.h
浏览文件 @
fc632575
...
@@ -311,18 +311,17 @@ extern unsigned long get_wchan(struct task_struct *p);
...
@@ -311,18 +311,17 @@ extern unsigned long get_wchan(struct task_struct *p);
#define cpu_relax() barrier()
#define cpu_relax() barrier()
#define cpu_relax_lowlatency() cpu_relax()
#define cpu_relax_lowlatency() cpu_relax()
/*
Used as a macro to identify the combined VIPT/PIPT cached
/*
*
CPUs which require a guarantee of coherency (no inequivalent
*
parisc_requires_coherency() is used to identify the combined VIPT/PIPT
*
aliases with different data, whether clean or not) to operate */
*
cached CPUs which require a guarantee of coherency (no inequivalent aliases
static
inline
int
parisc_requires_coherency
(
void
)
* with different data, whether clean or not) to operate
{
*/
#ifdef CONFIG_PA8X00
#ifdef CONFIG_PA8X00
return
(
boot_cpu_data
.
cpu_type
==
mako
)
||
extern
int
_parisc_requires_coherency
;
(
boot_cpu_data
.
cpu_type
==
mako2
);
#define parisc_requires_coherency() _parisc_requires_coherency
#else
#else
return
0
;
#define parisc_requires_coherency() (0)
#endif
#endif
}
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
...
...
arch/parisc/kernel/processor.c
浏览文件 @
fc632575
...
@@ -44,6 +44,10 @@
...
@@ -44,6 +44,10 @@
struct
system_cpuinfo_parisc
boot_cpu_data
__read_mostly
;
struct
system_cpuinfo_parisc
boot_cpu_data
__read_mostly
;
EXPORT_SYMBOL
(
boot_cpu_data
);
EXPORT_SYMBOL
(
boot_cpu_data
);
#ifdef CONFIG_PA8X00
int
_parisc_requires_coherency
__read_mostly
;
EXPORT_SYMBOL
(
_parisc_requires_coherency
);
#endif
DEFINE_PER_CPU
(
struct
cpuinfo_parisc
,
cpu_data
);
DEFINE_PER_CPU
(
struct
cpuinfo_parisc
,
cpu_data
);
...
@@ -277,8 +281,12 @@ void __init collect_boot_cpu_data(void)
...
@@ -277,8 +281,12 @@ void __init collect_boot_cpu_data(void)
boot_cpu_data
.
cpu_type
=
parisc_get_cpu_type
(
boot_cpu_data
.
hversion
);
boot_cpu_data
.
cpu_type
=
parisc_get_cpu_type
(
boot_cpu_data
.
hversion
);
boot_cpu_data
.
cpu_name
=
cpu_name_version
[
boot_cpu_data
.
cpu_type
][
0
];
boot_cpu_data
.
cpu_name
=
cpu_name_version
[
boot_cpu_data
.
cpu_type
][
0
];
boot_cpu_data
.
family_name
=
cpu_name_version
[
boot_cpu_data
.
cpu_type
][
1
];
boot_cpu_data
.
family_name
=
cpu_name_version
[
boot_cpu_data
.
cpu_type
][
1
];
}
#ifdef CONFIG_PA8X00
_parisc_requires_coherency
=
(
boot_cpu_data
.
cpu_type
==
mako
)
||
(
boot_cpu_data
.
cpu_type
==
mako2
);
#endif
}
/**
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录