Skip to content

Commit

Permalink
ARM: mm: remove broken condition check for v4 flushing
Browse files Browse the repository at this point in the history
There's no point having a conditional cache flush if we don't know the
state of the condition beforehand.

This patch makes the cacheflush in v4_flush_user_cache_range
unconditional.

signed-off-by: will deacon <will.deacon@arm.com>
  • Loading branch information
Will Deacon committed Mar 26, 2013
1 parent 3ef52f2 commit 794fe85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mm/cache-v4.S
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ENTRY(v4_flush_kern_cache_all)
ENTRY(v4_flush_user_cache_range)
#ifdef CONFIG_CPU_CP15
mov ip, #0
mcreq p15, 0, ip, c7, c7, 0 @ flush ID cache
mcr p15, 0, ip, c7, c7, 0 @ flush ID cache
mov pc, lr
#else
/* FALLTHROUGH */
Expand Down

0 comments on commit 794fe85

Please sign in to comment.