diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-08-01 18:39:42 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-09-27 08:37:44 -0400 |
commit | a00f6310183e164ad2cfa5f4ec5d8c724ff0f799 (patch) | |
tree | 75699ba81b4c11e21593a727b186b0b0ad9a816a /arch/mips/mm | |
parent | 06be375b9ae237b295648980e8a52048ab640f92 (diff) |
[MIPS] c-r4k: Convert init functions from inline to __init.
With more recent compilers inline doesn't necessarily means a function
will always be inlined. So leave that decission to the compiler and
make the function as __init.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/c-r4k.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index 2d729f6f6348..0b2da53750bd 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -89,7 +89,7 @@ static inline void r4k_blast_dcache_page_dc32(unsigned long addr) | |||
89 | blast_dcache32_page(addr); | 89 | blast_dcache32_page(addr); |
90 | } | 90 | } |
91 | 91 | ||
92 | static inline void r4k_blast_dcache_page_setup(void) | 92 | static void __init r4k_blast_dcache_page_setup(void) |
93 | { | 93 | { |
94 | unsigned long dc_lsize = cpu_dcache_line_size(); | 94 | unsigned long dc_lsize = cpu_dcache_line_size(); |
95 | 95 | ||
@@ -103,7 +103,7 @@ static inline void r4k_blast_dcache_page_setup(void) | |||
103 | 103 | ||
104 | static void (* r4k_blast_dcache_page_indexed)(unsigned long addr); | 104 | static void (* r4k_blast_dcache_page_indexed)(unsigned long addr); |
105 | 105 | ||
106 | static inline void r4k_blast_dcache_page_indexed_setup(void) | 106 | static void __init r4k_blast_dcache_page_indexed_setup(void) |
107 | { | 107 | { |
108 | unsigned long dc_lsize = cpu_dcache_line_size(); | 108 | unsigned long dc_lsize = cpu_dcache_line_size(); |
109 | 109 | ||
@@ -117,7 +117,7 @@ static inline void r4k_blast_dcache_page_indexed_setup(void) | |||
117 | 117 | ||
118 | static void (* r4k_blast_dcache)(void); | 118 | static void (* r4k_blast_dcache)(void); |
119 | 119 | ||
120 | static inline void r4k_blast_dcache_setup(void) | 120 | static void __init r4k_blast_dcache_setup(void) |
121 | { | 121 | { |
122 | unsigned long dc_lsize = cpu_dcache_line_size(); | 122 | unsigned long dc_lsize = cpu_dcache_line_size(); |
123 | 123 | ||
@@ -202,7 +202,7 @@ static inline void tx49_blast_icache32_page_indexed(unsigned long page) | |||
202 | 202 | ||
203 | static void (* r4k_blast_icache_page)(unsigned long addr); | 203 | static void (* r4k_blast_icache_page)(unsigned long addr); |
204 | 204 | ||
205 | static inline void r4k_blast_icache_page_setup(void) | 205 | static void __init r4k_blast_icache_page_setup(void) |
206 | { | 206 | { |
207 | unsigned long ic_lsize = cpu_icache_line_size(); | 207 | unsigned long ic_lsize = cpu_icache_line_size(); |
208 | 208 | ||
@@ -219,7 +219,7 @@ static inline void r4k_blast_icache_page_setup(void) | |||
219 | 219 | ||
220 | static void (* r4k_blast_icache_page_indexed)(unsigned long addr); | 220 | static void (* r4k_blast_icache_page_indexed)(unsigned long addr); |
221 | 221 | ||
222 | static inline void r4k_blast_icache_page_indexed_setup(void) | 222 | static void __init r4k_blast_icache_page_indexed_setup(void) |
223 | { | 223 | { |
224 | unsigned long ic_lsize = cpu_icache_line_size(); | 224 | unsigned long ic_lsize = cpu_icache_line_size(); |
225 | 225 | ||
@@ -243,7 +243,7 @@ static inline void r4k_blast_icache_page_indexed_setup(void) | |||
243 | 243 | ||
244 | static void (* r4k_blast_icache)(void); | 244 | static void (* r4k_blast_icache)(void); |
245 | 245 | ||
246 | static inline void r4k_blast_icache_setup(void) | 246 | static void __init r4k_blast_icache_setup(void) |
247 | { | 247 | { |
248 | unsigned long ic_lsize = cpu_icache_line_size(); | 248 | unsigned long ic_lsize = cpu_icache_line_size(); |
249 | 249 | ||
@@ -264,7 +264,7 @@ static inline void r4k_blast_icache_setup(void) | |||
264 | 264 | ||
265 | static void (* r4k_blast_scache_page)(unsigned long addr); | 265 | static void (* r4k_blast_scache_page)(unsigned long addr); |
266 | 266 | ||
267 | static inline void r4k_blast_scache_page_setup(void) | 267 | static void __init r4k_blast_scache_page_setup(void) |
268 | { | 268 | { |
269 | unsigned long sc_lsize = cpu_scache_line_size(); | 269 | unsigned long sc_lsize = cpu_scache_line_size(); |
270 | 270 | ||
@@ -282,7 +282,7 @@ static inline void r4k_blast_scache_page_setup(void) | |||
282 | 282 | ||
283 | static void (* r4k_blast_scache_page_indexed)(unsigned long addr); | 283 | static void (* r4k_blast_scache_page_indexed)(unsigned long addr); |
284 | 284 | ||
285 | static inline void r4k_blast_scache_page_indexed_setup(void) | 285 | static void __init r4k_blast_scache_page_indexed_setup(void) |
286 | { | 286 | { |
287 | unsigned long sc_lsize = cpu_scache_line_size(); | 287 | unsigned long sc_lsize = cpu_scache_line_size(); |
288 | 288 | ||
@@ -300,7 +300,7 @@ static inline void r4k_blast_scache_page_indexed_setup(void) | |||
300 | 300 | ||
301 | static void (* r4k_blast_scache)(void); | 301 | static void (* r4k_blast_scache)(void); |
302 | 302 | ||
303 | static inline void r4k_blast_scache_setup(void) | 303 | static void __init r4k_blast_scache_setup(void) |
304 | { | 304 | { |
305 | unsigned long sc_lsize = cpu_scache_line_size(); | 305 | unsigned long sc_lsize = cpu_scache_line_size(); |
306 | 306 | ||
@@ -1221,7 +1221,7 @@ void au1x00_fixup_config_od(void) | |||
1221 | } | 1221 | } |
1222 | } | 1222 | } |
1223 | 1223 | ||
1224 | static inline void coherency_setup(void) | 1224 | static void __init coherency_setup(void) |
1225 | { | 1225 | { |
1226 | change_c0_config(CONF_CM_CMASK, CONF_CM_DEFAULT); | 1226 | change_c0_config(CONF_CM_CMASK, CONF_CM_DEFAULT); |
1227 | 1227 | ||