]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARC: [mm] change semantics of __sync_icache_dcache() to inv d$ lines
authorVineet Gupta <vgupta@synopsys.com>
Thu, 16 May 2013 06:49:29 +0000 (12:19 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Thu, 16 May 2013 11:35:28 +0000 (17:05 +0530)
This helper is used only for prepearing code flushes thus no point in
keeping the corresponding dcache lines around

Infact keeping the dcache line around is risky - a writeback on eviction
can cause issues on aliasing configurations.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/cache_arc700.c

index 2f12bca8aef30c4155b21e514e3ba9dd5ec63468..d4b7bb616840698c645ed3d747b1fc7a82ead8c3 100644 (file)
@@ -610,7 +610,7 @@ void __sync_icache_dcache(unsigned long paddr, unsigned long vaddr, int len)
 
        local_irq_save(flags);
        __ic_line_inv_vaddr(paddr, vaddr, len);
-       __dc_line_op(paddr, vaddr, len, OP_FLUSH);
+       __dc_line_op(paddr, vaddr, len, OP_FLUSH_N_INV);
        local_irq_restore(flags);
 }