Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
ec74e361
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看板
提交
ec74e361
编写于
7月 13, 2005
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mark a few variables __read_mostly.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
cc61c1fe
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
8 deletion
+18
-8
arch/mips/kernel/setup.c
arch/mips/kernel/setup.c
+5
-4
arch/mips/kernel/time.c
arch/mips/kernel/time.c
+6
-3
arch/mips/mm/c-r4k.c
arch/mips/mm/c-r4k.c
+7
-1
未找到文件。
arch/mips/kernel/setup.c
浏览文件 @
ec74e361
...
...
@@ -37,12 +37,13 @@
#include <asm/addrspace.h>
#include <asm/bootinfo.h>
#include <asm/cache.h>
#include <asm/cpu.h>
#include <asm/sections.h>
#include <asm/setup.h>
#include <asm/system.h>
struct
cpuinfo_mips
cpu_data
[
NR_CPUS
];
struct
cpuinfo_mips
cpu_data
[
NR_CPUS
]
__read_mostly
;
EXPORT_SYMBOL
(
cpu_data
);
...
...
@@ -62,8 +63,8 @@ EXPORT_SYMBOL(PCI_DMA_BUS_IS_PHYS);
*
* These are initialized so they are in the .data section
*/
unsigned
long
mips_machtype
=
MACH_UNKNOWN
;
unsigned
long
mips_machgroup
=
MACH_GROUP_UNKNOWN
;
unsigned
long
mips_machtype
__read_mostly
=
MACH_UNKNOWN
;
unsigned
long
mips_machgroup
__read_mostly
=
MACH_GROUP_UNKNOWN
;
EXPORT_SYMBOL
(
mips_machtype
);
EXPORT_SYMBOL
(
mips_machgroup
);
...
...
@@ -77,7 +78,7 @@ static char command_line[CL_SIZE];
* mips_io_port_base is the begin of the address space to which x86 style
* I/O ports are mapped.
*/
const
unsigned
long
mips_io_port_base
=
-
1
;
const
unsigned
long
mips_io_port_base
__read_mostly
=
-
1
;
EXPORT_SYMBOL
(
mips_io_port_base
);
/*
...
...
arch/mips/kernel/time.c
浏览文件 @
ec74e361
...
...
@@ -25,6 +25,7 @@
#include <linux/module.h>
#include <asm/bootinfo.h>
#include <asm/cache.h>
#include <asm/compiler.h>
#include <asm/cpu.h>
#include <asm/cpu-features.h>
...
...
@@ -76,7 +77,7 @@ int (*rtc_set_mmss)(unsigned long);
static
unsigned
int
sll32_usecs_per_cycle
;
/* how many counter cycles in a jiffy */
static
unsigned
long
cycles_per_jiffy
;
static
unsigned
long
cycles_per_jiffy
__read_mostly
;
/* Cycle counter value at the previous timer interrupt.. */
static
unsigned
int
timerhi
,
timerlo
;
...
...
@@ -98,7 +99,10 @@ static unsigned int null_hpt_read(void)
return
0
;
}
static
void
null_hpt_init
(
unsigned
int
count
)
{
/* nothing */
}
static
void
null_hpt_init
(
unsigned
int
count
)
{
/* nothing */
}
/*
...
...
@@ -224,7 +228,6 @@ int do_settimeofday(struct timespec *tv)
set_normalized_timespec
(
&
wall_to_monotonic
,
wtm_sec
,
wtm_nsec
);
ntp_clear
();
write_sequnlock_irq
(
&
xtime_lock
);
clock_was_set
();
return
0
;
...
...
arch/mips/mm/c-r4k.c
浏览文件 @
ec74e361
...
...
@@ -16,6 +16,7 @@
#include <asm/bcache.h>
#include <asm/bootinfo.h>
#include <asm/cache.h>
#include <asm/cacheops.h>
#include <asm/cpu.h>
#include <asm/cpu-features.h>
...
...
@@ -28,7 +29,12 @@
#include <asm/war.h>
#include <asm/cacheflush.h>
/* for run_uncached() */
static
unsigned
long
icache_size
,
dcache_size
,
scache_size
;
/*
* Must die.
*/
static
unsigned
long
icache_size
__read_mostly
;
static
unsigned
long
dcache_size
__read_mostly
;
static
unsigned
long
scache_size
__read_mostly
;
/*
* Dummy cache handling routines for machines without boardcaches
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录