Skip to content

Commit

Permalink
ARM: 6901/1: remove unneeded check of the cache_is_vipt_nonaliasing()
Browse files Browse the repository at this point in the history
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: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
saeed bishara authored and Russell King committed May 16, 2011
1 parent 60ba536 commit 8373dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mm/flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8373dc3

Please sign in to comment.