diff options
Diffstat (limited to 'arch/mips/mm/c-r4k.c')
-rw-r--r-- | arch/mips/mm/c-r4k.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 21813beec7a5..f749f687ee87 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -107,7 +107,7 @@ static inline void r4k_blast_dcache_page_dc64(unsigned long addr) | |||
107 | blast_dcache64_page(addr); | 107 | blast_dcache64_page(addr); |
108 | } | 108 | } |
109 | 109 | ||
110 | static void __cpuinit r4k_blast_dcache_page_setup(void) | 110 | static void r4k_blast_dcache_page_setup(void) |
111 | { | 111 | { |
112 | unsigned long dc_lsize = cpu_dcache_line_size(); | 112 | unsigned long dc_lsize = cpu_dcache_line_size(); |
113 | 113 | ||
@@ -123,7 +123,7 @@ static void __cpuinit r4k_blast_dcache_page_setup(void) | |||
123 | 123 | ||
124 | static void (* r4k_blast_dcache_page_indexed)(unsigned long addr); | 124 | static void (* r4k_blast_dcache_page_indexed)(unsigned long addr); |
125 | 125 | ||
126 | static void __cpuinit r4k_blast_dcache_page_indexed_setup(void) | 126 | static void r4k_blast_dcache_page_indexed_setup(void) |
127 | { | 127 | { |
128 | unsigned long dc_lsize = cpu_dcache_line_size(); | 128 | unsigned long dc_lsize = cpu_dcache_line_size(); |
129 | 129 | ||
@@ -140,7 +140,7 @@ static void __cpuinit r4k_blast_dcache_page_indexed_setup(void) | |||
140 | void (* r4k_blast_dcache)(void); | 140 | void (* r4k_blast_dcache)(void); |
141 | EXPORT_SYMBOL(r4k_blast_dcache); | 141 | EXPORT_SYMBOL(r4k_blast_dcache); |
142 | 142 | ||
143 | static void __cpuinit r4k_blast_dcache_setup(void) | 143 | static void r4k_blast_dcache_setup(void) |
144 | { | 144 | { |
145 | unsigned long dc_lsize = cpu_dcache_line_size(); | 145 | unsigned long dc_lsize = cpu_dcache_line_size(); |
146 | 146 | ||
@@ -227,7 +227,7 @@ static inline void tx49_blast_icache32_page_indexed(unsigned long page) | |||
227 | 227 | ||
228 | static void (* r4k_blast_icache_page)(unsigned long addr); | 228 | static void (* r4k_blast_icache_page)(unsigned long addr); |
229 | 229 | ||
230 | static void __cpuinit r4k_blast_icache_page_setup(void) | 230 | static void r4k_blast_icache_page_setup(void) |
231 | { | 231 | { |
232 | unsigned long ic_lsize = cpu_icache_line_size(); | 232 | unsigned long ic_lsize = cpu_icache_line_size(); |
233 | 233 | ||
@@ -244,7 +244,7 @@ static void __cpuinit r4k_blast_icache_page_setup(void) | |||
244 | 244 | ||
245 | static void (* r4k_blast_icache_page_indexed)(unsigned long addr); | 245 | static void (* r4k_blast_icache_page_indexed)(unsigned long addr); |
246 | 246 | ||
247 | static void __cpuinit r4k_blast_icache_page_indexed_setup(void) | 247 | static void r4k_blast_icache_page_indexed_setup(void) |
248 | { | 248 | { |
249 | unsigned long ic_lsize = cpu_icache_line_size(); | 249 | unsigned long ic_lsize = cpu_icache_line_size(); |
250 | 250 | ||
@@ -269,7 +269,7 @@ static void __cpuinit r4k_blast_icache_page_indexed_setup(void) | |||
269 | void (* r4k_blast_icache)(void); | 269 | void (* r4k_blast_icache)(void); |
270 | EXPORT_SYMBOL(r4k_blast_icache); | 270 | EXPORT_SYMBOL(r4k_blast_icache); |
271 | 271 | ||
272 | static void __cpuinit r4k_blast_icache_setup(void) | 272 | static void r4k_blast_icache_setup(void) |
273 | { | 273 | { |
274 | unsigned long ic_lsize = cpu_icache_line_size(); | 274 | unsigned long ic_lsize = cpu_icache_line_size(); |
275 | 275 | ||
@@ -290,7 +290,7 @@ static void __cpuinit r4k_blast_icache_setup(void) | |||
290 | 290 | ||
291 | static void (* r4k_blast_scache_page)(unsigned long addr); | 291 | static void (* r4k_blast_scache_page)(unsigned long addr); |
292 | 292 | ||
293 | static void __cpuinit r4k_blast_scache_page_setup(void) | 293 | static void r4k_blast_scache_page_setup(void) |
294 | { | 294 | { |
295 | unsigned long sc_lsize = cpu_scache_line_size(); | 295 | unsigned long sc_lsize = cpu_scache_line_size(); |
296 | 296 | ||
@@ -308,7 +308,7 @@ static void __cpuinit r4k_blast_scache_page_setup(void) | |||
308 | 308 | ||
309 | static void (* r4k_blast_scache_page_indexed)(unsigned long addr); | 309 | static void (* r4k_blast_scache_page_indexed)(unsigned long addr); |
310 | 310 | ||
311 | static void __cpuinit r4k_blast_scache_page_indexed_setup(void) | 311 | static void r4k_blast_scache_page_indexed_setup(void) |
312 | { | 312 | { |
313 | unsigned long sc_lsize = cpu_scache_line_size(); | 313 | unsigned long sc_lsize = cpu_scache_line_size(); |
314 | 314 | ||
@@ -326,7 +326,7 @@ static void __cpuinit r4k_blast_scache_page_indexed_setup(void) | |||
326 | 326 | ||
327 | static void (* r4k_blast_scache)(void); | 327 | static void (* r4k_blast_scache)(void); |
328 | 328 | ||
329 | static void __cpuinit r4k_blast_scache_setup(void) | 329 | static void r4k_blast_scache_setup(void) |
330 | { | 330 | { |
331 | unsigned long sc_lsize = cpu_scache_line_size(); | 331 | unsigned long sc_lsize = cpu_scache_line_size(); |
332 | 332 | ||
@@ -797,11 +797,11 @@ static inline void alias_74k_erratum(struct cpuinfo_mips *c) | |||
797 | } | 797 | } |
798 | } | 798 | } |
799 | 799 | ||
800 | static char *way_string[] __cpuinitdata = { NULL, "direct mapped", "2-way", | 800 | static char *way_string[] = { NULL, "direct mapped", "2-way", |
801 | "3-way", "4-way", "5-way", "6-way", "7-way", "8-way" | 801 | "3-way", "4-way", "5-way", "6-way", "7-way", "8-way" |
802 | }; | 802 | }; |
803 | 803 | ||
804 | static void __cpuinit probe_pcache(void) | 804 | static void probe_pcache(void) |
805 | { | 805 | { |
806 | struct cpuinfo_mips *c = ¤t_cpu_data; | 806 | struct cpuinfo_mips *c = ¤t_cpu_data; |
807 | unsigned int config = read_c0_config(); | 807 | unsigned int config = read_c0_config(); |
@@ -1119,7 +1119,7 @@ static void __cpuinit probe_pcache(void) | |||
1119 | * executes in KSEG1 space or else you will crash and burn badly. You have | 1119 | * executes in KSEG1 space or else you will crash and burn badly. You have |
1120 | * been warned. | 1120 | * been warned. |
1121 | */ | 1121 | */ |
1122 | static int __cpuinit probe_scache(void) | 1122 | static int probe_scache(void) |
1123 | { | 1123 | { |
1124 | unsigned long flags, addr, begin, end, pow2; | 1124 | unsigned long flags, addr, begin, end, pow2; |
1125 | unsigned int config = read_c0_config(); | 1125 | unsigned int config = read_c0_config(); |
@@ -1196,7 +1196,7 @@ extern int r5k_sc_init(void); | |||
1196 | extern int rm7k_sc_init(void); | 1196 | extern int rm7k_sc_init(void); |
1197 | extern int mips_sc_init(void); | 1197 | extern int mips_sc_init(void); |
1198 | 1198 | ||
1199 | static void __cpuinit setup_scache(void) | 1199 | static void setup_scache(void) |
1200 | { | 1200 | { |
1201 | struct cpuinfo_mips *c = ¤t_cpu_data; | 1201 | struct cpuinfo_mips *c = ¤t_cpu_data; |
1202 | unsigned int config = read_c0_config(); | 1202 | unsigned int config = read_c0_config(); |
@@ -1329,7 +1329,7 @@ static void nxp_pr4450_fixup_config(void) | |||
1329 | NXP_BARRIER(); | 1329 | NXP_BARRIER(); |
1330 | } | 1330 | } |
1331 | 1331 | ||
1332 | static int __cpuinitdata cca = -1; | 1332 | static int cca = -1; |
1333 | 1333 | ||
1334 | static int __init cca_setup(char *str) | 1334 | static int __init cca_setup(char *str) |
1335 | { | 1335 | { |
@@ -1340,7 +1340,7 @@ static int __init cca_setup(char *str) | |||
1340 | 1340 | ||
1341 | early_param("cca", cca_setup); | 1341 | early_param("cca", cca_setup); |
1342 | 1342 | ||
1343 | static void __cpuinit coherency_setup(void) | 1343 | static void coherency_setup(void) |
1344 | { | 1344 | { |
1345 | if (cca < 0 || cca > 7) | 1345 | if (cca < 0 || cca > 7) |
1346 | cca = read_c0_config() & CONF_CM_CMASK; | 1346 | cca = read_c0_config() & CONF_CM_CMASK; |
@@ -1380,7 +1380,7 @@ static void __cpuinit coherency_setup(void) | |||
1380 | } | 1380 | } |
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | static void __cpuinit r4k_cache_error_setup(void) | 1383 | static void r4k_cache_error_setup(void) |
1384 | { | 1384 | { |
1385 | extern char __weak except_vec2_generic; | 1385 | extern char __weak except_vec2_generic; |
1386 | extern char __weak except_vec2_sb1; | 1386 | extern char __weak except_vec2_sb1; |
@@ -1398,7 +1398,7 @@ static void __cpuinit r4k_cache_error_setup(void) | |||
1398 | } | 1398 | } |
1399 | } | 1399 | } |
1400 | 1400 | ||
1401 | void __cpuinit r4k_cache_init(void) | 1401 | void r4k_cache_init(void) |
1402 | { | 1402 | { |
1403 | extern void build_clear_page(void); | 1403 | extern void build_clear_page(void); |
1404 | extern void build_copy_page(void); | 1404 | extern void build_copy_page(void); |