Skip to content

Commit f76348a

Browse files
author
Russell King
committed
ARM: remove unnecessary cache flush
This cache flush occurs when we first insert a page into the page tables, where a page did not exist previously. There can be no cache lines associated with this virtual mapping, so this cache flush is redundant. Tested-by: Mike Rapoport <mike@compulab.co.il> Tested-by: Mikael Pettersson <mikpe at it.uu.se> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 6e8699f commit f76348a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎arch/arm/mm/fault-armv.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ make_coherent(struct address_space *mapping, struct vm_area_struct *vma,
133133
flush_dcache_mmap_unlock(mapping);
134134
if (aliases)
135135
do_adjust_pte(vma, addr, pfn, ptep);
136-
else
137-
flush_cache_page(vma, addr, pfn);
138136
}
139137

140138
/*

0 commit comments

Comments
 (0)