summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-01-12 14:51:04 +0100
committerMichal Simek <monstr@monstr.eu>2010-03-11 14:07:57 +0100
commit407c1da07d5afa001ed0fdb8f379c00bbd09990a (patch)
tree43421994f3e384d74b44bce71dd74af14102031f
parent777537905744c28b02c283692e7f75f5445c1afa (diff)
downloadop-kernel-dev-407c1da07d5afa001ed0fdb8f379c00bbd09990a.zip
op-kernel-dev-407c1da07d5afa001ed0fdb8f379c00bbd09990a.tar.gz
microblaze: Move cache function to cache.c
It is better to have init cache handling on one place. Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r--arch/microblaze/kernel/cpu/cache.c5
-rw-r--r--arch/microblaze/kernel/setup.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/arch/microblaze/kernel/cpu/cache.c b/arch/microblaze/kernel/cpu/cache.c
index 2a56bcc..5425f89 100644
--- a/arch/microblaze/kernel/cpu/cache.c
+++ b/arch/microblaze/kernel/cpu/cache.c
@@ -532,4 +532,9 @@ void microblaze_cache_init(void)
}
}
}
+ invalidate_dcache();
+ enable_dcache();
+
+ invalidate_icache();
+ enable_icache();
}
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c
index cd68e98..f974ec7 100644
--- a/arch/microblaze/kernel/setup.c
+++ b/arch/microblaze/kernel/setup.c
@@ -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();
OpenPOWER on IntegriCloud