microblaze: Move cache function to cache.c
authorMichal Simek <monstr@monstr.eu>
Tue, 12 Jan 2010 13:51:04 +0000 (14:51 +0100)
committerMichal Simek <monstr@monstr.eu>
Thu, 11 Mar 2010 13:07:57 +0000 (14:07 +0100)
It is better to have init cache handling on one place.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/cpu/cache.c
arch/microblaze/kernel/setup.c

index 2a56bcc..5425f89 100644 (file)
@@ -532,4 +532,9 @@ void microblaze_cache_init(void)
                        }
                }
        }
+       invalidate_dcache();
+       enable_dcache();
+
+       invalidate_icache();
+       enable_icache();
 }
index cd68e98..f974ec7 100644 (file)
@@ -57,12 +57,6 @@ void __init setup_arch(char **cmdline_p)
 
        microblaze_cache_init();
 
-       invalidate_dcache();
-       enable_dcache();
-
-       invalidate_icache();
-       enable_icache();
-
        setup_memory();
 
        xilinx_pci_init();