Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
ec74e361
Commit
ec74e361
authored
Jul 13, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark a few variables __read_mostly.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
cc61c1fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+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
No files found.
arch/mips/kernel/setup.c
View file @
ec74e361
...
@@ -37,12 +37,13 @@
...
@@ -37,12 +37,13 @@
#include <asm/addrspace.h>
#include <asm/addrspace.h>
#include <asm/bootinfo.h>
#include <asm/bootinfo.h>
#include <asm/cache.h>
#include <asm/cpu.h>
#include <asm/cpu.h>
#include <asm/sections.h>
#include <asm/sections.h>
#include <asm/setup.h>
#include <asm/setup.h>
#include <asm/system.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
);
EXPORT_SYMBOL
(
cpu_data
);
...
@@ -62,8 +63,8 @@ EXPORT_SYMBOL(PCI_DMA_BUS_IS_PHYS);
...
@@ -62,8 +63,8 @@ EXPORT_SYMBOL(PCI_DMA_BUS_IS_PHYS);
*
*
* These are initialized so they are in the .data section
* These are initialized so they are in the .data section
*/
*/
unsigned
long
mips_machtype
=
MACH_UNKNOWN
;
unsigned
long
mips_machtype
__read_mostly
=
MACH_UNKNOWN
;
unsigned
long
mips_machgroup
=
MACH_GROUP_UNKNOWN
;
unsigned
long
mips_machgroup
__read_mostly
=
MACH_GROUP_UNKNOWN
;
EXPORT_SYMBOL
(
mips_machtype
);
EXPORT_SYMBOL
(
mips_machtype
);
EXPORT_SYMBOL
(
mips_machgroup
);
EXPORT_SYMBOL
(
mips_machgroup
);
...
@@ -77,7 +78,7 @@ static char command_line[CL_SIZE];
...
@@ -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
* mips_io_port_base is the begin of the address space to which x86 style
* I/O ports are mapped.
* 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
);
EXPORT_SYMBOL
(
mips_io_port_base
);
/*
/*
...
...
arch/mips/kernel/time.c
View file @
ec74e361
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include <linux/module.h>
#include <linux/module.h>
#include <asm/bootinfo.h>
#include <asm/bootinfo.h>
#include <asm/cache.h>
#include <asm/compiler.h>
#include <asm/compiler.h>
#include <asm/cpu.h>
#include <asm/cpu.h>
#include <asm/cpu-features.h>
#include <asm/cpu-features.h>
...
@@ -76,7 +77,7 @@ int (*rtc_set_mmss)(unsigned long);
...
@@ -76,7 +77,7 @@ int (*rtc_set_mmss)(unsigned long);
static
unsigned
int
sll32_usecs_per_cycle
;
static
unsigned
int
sll32_usecs_per_cycle
;
/* how many counter cycles in a jiffy */
/* 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.. */
/* Cycle counter value at the previous timer interrupt.. */
static
unsigned
int
timerhi
,
timerlo
;
static
unsigned
int
timerhi
,
timerlo
;
...
@@ -98,7 +99,10 @@ static unsigned int null_hpt_read(void)
...
@@ -98,7 +99,10 @@ static unsigned int null_hpt_read(void)
return
0
;
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)
...
@@ -224,7 +228,6 @@ int do_settimeofday(struct timespec *tv)
set_normalized_timespec
(
&
wall_to_monotonic
,
wtm_sec
,
wtm_nsec
);
set_normalized_timespec
(
&
wall_to_monotonic
,
wtm_sec
,
wtm_nsec
);
ntp_clear
();
ntp_clear
();
write_sequnlock_irq
(
&
xtime_lock
);
write_sequnlock_irq
(
&
xtime_lock
);
clock_was_set
();
clock_was_set
();
return
0
;
return
0
;
...
...
arch/mips/mm/c-r4k.c
View file @
ec74e361
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include <asm/bcache.h>
#include <asm/bcache.h>
#include <asm/bootinfo.h>
#include <asm/bootinfo.h>
#include <asm/cache.h>
#include <asm/cacheops.h>
#include <asm/cacheops.h>
#include <asm/cpu.h>
#include <asm/cpu.h>
#include <asm/cpu-features.h>
#include <asm/cpu-features.h>
...
@@ -28,7 +29,12 @@
...
@@ -28,7 +29,12 @@
#include <asm/war.h>
#include <asm/war.h>
#include <asm/cacheflush.h>
/* for run_uncached() */
#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
* Dummy cache handling routines for machines without boardcaches
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment