Skip to content

Commit

Permalink
microblaze: Move cache function to cache.c
Browse files Browse the repository at this point in the history
It is better to have init cache handling on one place.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Mar 11, 2010
1 parent 7775379 commit 407c1da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions arch/microblaze/kernel/cpu/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,4 +532,9 @@ void microblaze_cache_init(void)
}
}
}
invalidate_dcache();
enable_dcache();

invalidate_icache();
enable_icache();
}
6 changes: 0 additions & 6 deletions arch/microblaze/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 407c1da

Please sign in to comment.