diff options
author | Michal Simek <monstr@monstr.eu> | 2009-04-21 14:07:00 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-04-23 16:27:31 +0200 |
commit | 6dfb79aa114ac69032f3931235ffc90799e9630b (patch) | |
tree | 38d6a842c6b4c24275d20e8141abedac3cea371b | |
parent | fbeda67782689bf80109512b16ac47264a282d01 (diff) | |
download | linux-6dfb79aa114ac69032f3931235ffc90799e9630b.tar.bz2 |
microblaze: Do not check use_dcache
It is not necessary to check cpuinfo.use_dcache because
this checking is done in function which call that functions
Signed-off-by: Michal Simek <monstr@monstr.eu>
-rw-r--r-- | arch/microblaze/kernel/cpu/cache.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/microblaze/kernel/cpu/cache.c b/arch/microblaze/kernel/cpu/cache.c index be9fecca4f91..af866a450125 100644 --- a/arch/microblaze/kernel/cpu/cache.c +++ b/arch/microblaze/kernel/cpu/cache.c @@ -100,7 +100,6 @@ void _enable_dcache(void) void _disable_dcache(void) { - if (cpuinfo.use_dcache) { #if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR __asm__ __volatile__ (" \ msrclr r0, %0; \ @@ -119,12 +118,10 @@ void _disable_dcache(void) : "i" (MSR_DCE) \ : "memory", "r12"); #endif - } } void _invalidate_dcache(unsigned int addr) { - if (cpuinfo.use_dcache) __asm__ __volatile__ (" \ wdc %0, r0" \ : \ |