Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8373dc38 authored by saeed bishara's avatar saeed bishara Committed by Russell King
Browse files

ARM: 6901/1: remove unneeded check of the cache_is_vipt_nonaliasing()



when cache_is_vipt_nonaliasing(), we always have pte_exec() true at
the end of this function, so no need for the additional check.

Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarSaeed Bishara <saeed@marvell.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 60ba5369
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -253,8 +253,8 @@ void __sync_icache_dcache(pte_t pteval)

	if (!test_and_set_bit(PG_dcache_clean, &page->flags))
		__flush_dcache_page(mapping, page);
	/* pte_exec() already checked above for non-aliasing VIPT cache */
	if (cache_is_vipt_nonaliasing() || pte_exec(pteval))

	if (pte_exec(pteval))
		__flush_icache_all();
}
#endif