diff options
Diffstat (limited to 'arch/microblaze/kernel/cpu')
-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) | |||
100 | 100 | ||
101 | void _disable_dcache(void) | 101 | void _disable_dcache(void) |
102 | { | 102 | { |
103 | if (cpuinfo.use_dcache) { | ||
104 | #if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR | 103 | #if CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR |
105 | __asm__ __volatile__ (" \ | 104 | __asm__ __volatile__ (" \ |
106 | msrclr r0, %0; \ | 105 | msrclr r0, %0; \ |
@@ -119,12 +118,10 @@ void _disable_dcache(void) | |||
119 | : "i" (MSR_DCE) \ | 118 | : "i" (MSR_DCE) \ |
120 | : "memory", "r12"); | 119 | : "memory", "r12"); |
121 | #endif | 120 | #endif |
122 | } | ||
123 | } | 121 | } |
124 | 122 | ||
125 | void _invalidate_dcache(unsigned int addr) | 123 | void _invalidate_dcache(unsigned int addr) |
126 | { | 124 | { |
127 | if (cpuinfo.use_dcache) | ||
128 | __asm__ __volatile__ (" \ | 125 | __asm__ __volatile__ (" \ |
129 | wdc %0, r0" \ | 126 | wdc %0, r0" \ |
130 | : \ | 127 | : \ |