diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-15 12:35:15 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-15 12:35:15 +0900 |
commit | 109b44a82a7a8ae32d7fb257480f92f2d96f0daf (patch) | |
tree | 70994c97dd46dc566c7d44862a262e2c0f24eb94 /arch/sh/mm/cache.c | |
parent | 37443ef3f0406e855e169c87ae3f4ffb4b6ff635 (diff) | |
download | op-kernel-dev-109b44a82a7a8ae32d7fb257480f92f2d96f0daf.zip op-kernel-dev-109b44a82a7a8ae32d7fb257480f92f2d96f0daf.tar.gz |
sh: Convert SH-2 to new cacheflush interface.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/cache.c')
-rw-r--r-- | arch/sh/mm/cache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/mm/cache.c b/arch/sh/mm/cache.c index da5bc6a..5ac299d 100644 --- a/arch/sh/mm/cache.c +++ b/arch/sh/mm/cache.c @@ -244,6 +244,12 @@ void __init cpu_cache_init(void) __flush_purge_region = noop__flush_region; __flush_invalidate_region = noop__flush_region; + if (boot_cpu_data.family == CPU_FAMILY_SH2) { + extern void __weak sh2_cache_init(void); + + sh2_cache_init(); + } + if ((boot_cpu_data.family == CPU_FAMILY_SH4) || (boot_cpu_data.family == CPU_FAMILY_SH4A) || (boot_cpu_data.family == CPU_FAMILY_SH4AL_DSP)) { |