diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 20:49:32 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-14 20:49:32 -0400 |
commit | dde5e3ffb770ef2854bbc32c51a365e932919e19 (patch) | |
tree | 1b7936b8068f3532892b30a526d23b79bbe401f5 /arch/sh/kernel/cpu/init.c | |
parent | cbbe2f68f678a90bebeb30b8a7fcd8aed0614879 (diff) |
sh: rework nommu for generic cache.c use.
This does a bit of reorganizing for allowing nommu to use the new
and generic cache.c, no functional changes.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/init.c')
-rw-r--r-- | arch/sh/kernel/cpu/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/init.c b/arch/sh/kernel/cpu/init.c index ad85421099cd..c832fa4cf8ed 100644 --- a/arch/sh/kernel/cpu/init.c +++ b/arch/sh/kernel/cpu/init.c | |||
@@ -268,11 +268,9 @@ asmlinkage void __init sh_cpu_init(void) | |||
268 | cache_init(); | 268 | cache_init(); |
269 | 269 | ||
270 | if (raw_smp_processor_id() == 0) { | 270 | if (raw_smp_processor_id() == 0) { |
271 | #ifdef CONFIG_MMU | ||
272 | shm_align_mask = max_t(unsigned long, | 271 | shm_align_mask = max_t(unsigned long, |
273 | current_cpu_data.dcache.way_size - 1, | 272 | current_cpu_data.dcache.way_size - 1, |
274 | PAGE_SIZE - 1); | 273 | PAGE_SIZE - 1); |
275 | #endif | ||
276 | 274 | ||
277 | /* Boot CPU sets the cache shape */ | 275 | /* Boot CPU sets the cache shape */ |
278 | detect_cache_shape(); | 276 | detect_cache_shape(); |