]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaae1a73e129d6d543c5711ceb7a4806c962b4bfb
tree9393ff2f7d6bd650f802ff5408b5facdc3b5bc86
parent9c08b683da1e22c6eff9350cb23aa93bd92b5e02
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