Sfoglia il codice sorgente

sh: Wire up sh5_cache_init().

Now that the SH-5 code is more or less behaving with the new cacheflush
interface, wire up the initialization code.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 16 anni fa
parent
commit
2b4315185a
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      arch/sh/mm/cache.c

+ 6 - 0
arch/sh/mm/cache.c

@@ -277,5 +277,11 @@ void __init cpu_cache_init(void)
 		sh4_cache_init();
 	}
 
+	if (boot_cpu_data.family == CPU_FAMILY_SH5) {
+		extern void __weak sh5_cache_init(void);
+
+		sh5_cache_init();
+	}
+
 	emit_cache_params();
 }