]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm926ejs/cpu.c
update to 2015.04-rc1
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / cpu.c
index 174c8d36b21134f1688ad4efdadad4de910a512b..d1d2a176f673448321a9edb5869d166b3fb54d85 100644 (file)
@@ -54,7 +54,9 @@ int cleanup_before_linux (void)
 /* flush I/D-cache */
 static void cache_flush (void)
 {
+#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
        unsigned long i = 0;
 
        asm ("mcr p15, 0, %0, c7, c7, 0": :"r" (i));
+#endif
 }