ARM: cache-v7: consolidate initialisation of cache level index
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 3 Apr 2015 10:21:42 +0000 (11:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 14 Apr 2015 21:26:52 +0000 (22:26 +0100)
commitcd8b24d9e852b53e68c69a086358c81423dfb8d1
tree9393ff2f7d6bd650f802ff5408b5facdc3b5bc86
parent47b8484ea6569511a3cd915bea29886b4cd08333
ARM: cache-v7: consolidate initialisation of cache level index

Both v7_flush_cache_louis and v7_flush_dcache_all both begin the
flush_levels loop with r10 initialised to zero.  In each case, this
is done immediately prior to entering the loop.  Branch to this
instruction in v7_flush_dcache_all from v7_flush_cache_louis and
eliminate the unnecessary initialisation in v7_flush_cache_louis.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-v7.S