diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-07-13 07:48:45 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:31:46 -0400 |
commit | ec74e361f1e71a2498e48b62abdc4bd8d2423354 (patch) | |
tree | f442c9b3cf759743d97393288a31b9e481ad1df4 /arch/mips/kernel | |
parent | cc61c1fede7d02cb8133ab0952ca3f3ba1f7fbb1 (diff) |
Mark a few variables __read_mostly.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/setup.c | 9 | ||||
-rw-r--r-- | arch/mips/kernel/time.c | 9 |
2 files changed, 11 insertions, 7 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 9253dccefd07..d86affa21278 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -37,12 +37,13 @@ | |||
37 | 37 | ||
38 | #include <asm/addrspace.h> | 38 | #include <asm/addrspace.h> |
39 | #include <asm/bootinfo.h> | 39 | #include <asm/bootinfo.h> |
40 | #include <asm/cache.h> | ||
40 | #include <asm/cpu.h> | 41 | #include <asm/cpu.h> |
41 | #include <asm/sections.h> | 42 | #include <asm/sections.h> |
42 | #include <asm/setup.h> | 43 | #include <asm/setup.h> |
43 | #include <asm/system.h> | 44 | #include <asm/system.h> |
44 | 45 | ||
45 | struct cpuinfo_mips cpu_data[NR_CPUS]; | 46 | struct cpuinfo_mips cpu_data[NR_CPUS] __read_mostly; |
46 | 47 | ||
47 | EXPORT_SYMBOL(cpu_data); | 48 | EXPORT_SYMBOL(cpu_data); |
48 | 49 | ||
@@ -62,8 +63,8 @@ EXPORT_SYMBOL(PCI_DMA_BUS_IS_PHYS); | |||
62 | * | 63 | * |
63 | * These are initialized so they are in the .data section | 64 | * These are initialized so they are in the .data section |
64 | */ | 65 | */ |
65 | unsigned long mips_machtype = MACH_UNKNOWN; | 66 | unsigned long mips_machtype __read_mostly = MACH_UNKNOWN; |
66 | unsigned long mips_machgroup = MACH_GROUP_UNKNOWN; | 67 | unsigned long mips_machgroup __read_mostly = MACH_GROUP_UNKNOWN; |
67 | 68 | ||
68 | EXPORT_SYMBOL(mips_machtype); | 69 | EXPORT_SYMBOL(mips_machtype); |
69 | EXPORT_SYMBOL(mips_machgroup); | 70 | EXPORT_SYMBOL(mips_machgroup); |
@@ -77,7 +78,7 @@ static char command_line[CL_SIZE]; | |||
77 | * mips_io_port_base is the begin of the address space to which x86 style | 78 | * mips_io_port_base is the begin of the address space to which x86 style |
78 | * I/O ports are mapped. | 79 | * I/O ports are mapped. |
79 | */ | 80 | */ |
80 | const unsigned long mips_io_port_base = -1; | 81 | const unsigned long mips_io_port_base __read_mostly = -1; |
81 | EXPORT_SYMBOL(mips_io_port_base); | 82 | EXPORT_SYMBOL(mips_io_port_base); |
82 | 83 | ||
83 | /* | 84 | /* |
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c index 0dd0df7a3b04..fbc153c8f833 100644 --- a/arch/mips/kernel/time.c +++ b/arch/mips/kernel/time.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <linux/module.h> | 25 | #include <linux/module.h> |
26 | 26 | ||
27 | #include <asm/bootinfo.h> | 27 | #include <asm/bootinfo.h> |
28 | #include <asm/cache.h> | ||
28 | #include <asm/compiler.h> | 29 | #include <asm/compiler.h> |
29 | #include <asm/cpu.h> | 30 | #include <asm/cpu.h> |
30 | #include <asm/cpu-features.h> | 31 | #include <asm/cpu-features.h> |
@@ -76,7 +77,7 @@ int (*rtc_set_mmss)(unsigned long); | |||
76 | static unsigned int sll32_usecs_per_cycle; | 77 | static unsigned int sll32_usecs_per_cycle; |
77 | 78 | ||
78 | /* how many counter cycles in a jiffy */ | 79 | /* how many counter cycles in a jiffy */ |
79 | static unsigned long cycles_per_jiffy; | 80 | static unsigned long cycles_per_jiffy __read_mostly; |
80 | 81 | ||
81 | /* Cycle counter value at the previous timer interrupt.. */ | 82 | /* Cycle counter value at the previous timer interrupt.. */ |
82 | static unsigned int timerhi, timerlo; | 83 | static unsigned int timerhi, timerlo; |
@@ -98,7 +99,10 @@ static unsigned int null_hpt_read(void) | |||
98 | return 0; | 99 | return 0; |
99 | } | 100 | } |
100 | 101 | ||
101 | static void null_hpt_init(unsigned int count) { /* nothing */ } | 102 | static void null_hpt_init(unsigned int count) |
103 | { | ||
104 | /* nothing */ | ||
105 | } | ||
102 | 106 | ||
103 | 107 | ||
104 | /* | 108 | /* |
@@ -224,7 +228,6 @@ int do_settimeofday(struct timespec *tv) | |||
224 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); | 228 | set_normalized_timespec(&wall_to_monotonic, wtm_sec, wtm_nsec); |
225 | 229 | ||
226 | ntp_clear(); | 230 | ntp_clear(); |
227 | |||
228 | write_sequnlock_irq(&xtime_lock); | 231 | write_sequnlock_irq(&xtime_lock); |
229 | clock_was_set(); | 232 | clock_was_set(); |
230 | return 0; | 233 | return 0; |