diff options
| author | Michal Simek <monstr@monstr.eu> | 2010-01-12 08:51:04 -0500 |
|---|---|---|
| committer | Michal Simek <monstr@monstr.eu> | 2010-03-11 08:07:57 -0500 |
| commit | 407c1da07d5afa001ed0fdb8f379c00bbd09990a (patch) | |
| tree | 43421994f3e384d74b44bce71dd74af14102031f | |
| parent | 777537905744c28b02c283692e7f75f5445c1afa (diff) | |
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.c | 5 | ||||
| -rw-r--r-- | arch/microblaze/kernel/setup.c | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/arch/microblaze/kernel/cpu/cache.c b/arch/microblaze/kernel/cpu/cache.c index 2a56bccce4e0..5425f89335ed 100644 --- a/arch/microblaze/kernel/cpu/cache.c +++ b/arch/microblaze/kernel/cpu/cache.c | |||
| @@ -532,4 +532,9 @@ void microblaze_cache_init(void) | |||
| 532 | } | 532 | } |
| 533 | } | 533 | } |
| 534 | } | 534 | } |
| 535 | invalidate_dcache(); | ||
| 536 | enable_dcache(); | ||
| 537 | |||
| 538 | invalidate_icache(); | ||
| 539 | enable_icache(); | ||
| 535 | } | 540 | } |
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c index cd68e988b48c..f974ec7aa357 100644 --- a/arch/microblaze/kernel/setup.c +++ b/arch/microblaze/kernel/setup.c | |||
| @@ -57,12 +57,6 @@ void __init setup_arch(char **cmdline_p) | |||
| 57 | 57 | ||
| 58 | microblaze_cache_init(); | 58 | microblaze_cache_init(); |
| 59 | 59 | ||
| 60 | invalidate_dcache(); | ||
| 61 | enable_dcache(); | ||
| 62 | |||
| 63 | invalidate_icache(); | ||
| 64 | enable_icache(); | ||
| 65 | |||
| 66 | setup_memory(); | 60 | setup_memory(); |
| 67 | 61 | ||
| 68 | xilinx_pci_init(); | 62 | xilinx_pci_init(); |
