diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/rk27xx/system-rk27xx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/firmware/target/arm/rk27xx/system-rk27xx.c b/firmware/target/arm/rk27xx/system-rk27xx.c index 712c7d6549..9f089e8170 100644 --- a/firmware/target/arm/rk27xx/system-rk27xx.c +++ b/firmware/target/arm/rk27xx/system-rk27xx.c | |||
@@ -222,8 +222,6 @@ void commit_discard_dcache_range (const void *base, unsigned int size) | |||
222 | uint32_t end_opcode = (uint32_t)((uintptr_t)base + size) | 0x01; | 222 | uint32_t end_opcode = (uint32_t)((uintptr_t)base + size) | 0x01; |
223 | uint32_t opcode = (uint32_t)((uintptr_t)base & 0xffffffe0) | 0x01; | 223 | uint32_t opcode = (uint32_t)((uintptr_t)base & 0xffffffe0) | 0x01; |
224 | 224 | ||
225 | int old_irq = disable_irq_save(); | ||
226 | |||
227 | while (opcode <= end_opcode) | 225 | while (opcode <= end_opcode) |
228 | { | 226 | { |
229 | while (CACHEOP & 0x03); | 227 | while (CACHEOP & 0x03); |
@@ -231,8 +229,6 @@ void commit_discard_dcache_range (const void *base, unsigned int size) | |||
231 | CACHEOP = opcode; | 229 | CACHEOP = opcode; |
232 | opcode += 32; | 230 | opcode += 32; |
233 | } | 231 | } |
234 | |||
235 | restore_irq(old_irq); | ||
236 | } | 232 | } |
237 | 233 | ||
238 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 234 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |