diff options
Diffstat (limited to 'arch/sh/mm/init.c')
-rw-r--r-- | arch/sh/mm/init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index cf0e9c5146b1..0a9b4d855bc9 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -210,6 +210,9 @@ void __init mem_init(void) | |||
210 | high_memory = node_high_memory; | 210 | high_memory = node_high_memory; |
211 | } | 211 | } |
212 | 212 | ||
213 | /* Set this up early, so we can take care of the zero page */ | ||
214 | cpu_cache_init(); | ||
215 | |||
213 | /* clear the zero-page */ | 216 | /* clear the zero-page */ |
214 | memset(empty_zero_page, 0, PAGE_SIZE); | 217 | memset(empty_zero_page, 0, PAGE_SIZE); |
215 | __flush_wback_region(empty_zero_page, PAGE_SIZE); | 218 | __flush_wback_region(empty_zero_page, PAGE_SIZE); |
@@ -230,8 +233,6 @@ void __init mem_init(void) | |||
230 | datasize >> 10, | 233 | datasize >> 10, |
231 | initsize >> 10); | 234 | initsize >> 10); |
232 | 235 | ||
233 | cpu_cache_init(); | ||
234 | |||
235 | /* Initialize the vDSO */ | 236 | /* Initialize the vDSO */ |
236 | vsyscall_init(); | 237 | vsyscall_init(); |
237 | } | 238 | } |