ARM: mm: remove redundant dsb() prior to range TLB invalidation
authorWill Deacon <will.deacon@arm.com>
Thu, 23 May 2013 17:24:21 +0000 (18:24 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 12 Aug 2013 11:25:44 +0000 (12:25 +0100)
The kernel TLB range invalidation functions already contain dsb
instructions before and after the maintenance, so there is no need to
introduce additional barriers.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/mm/dma-mapping.c

index 7f9b179..0c17f69 100644 (file)
@@ -455,7 +455,6 @@ static void __dma_remap(struct page *page, size_t size, pgprot_t prot)
        unsigned end = start + size;
 
        apply_to_page_range(&init_mm, start, size, __dma_update_pte, &prot);
-       dsb();
        flush_tlb_kernel_range(start, end);
 }