arch/tile: Split the icache flush code off to a generic <arch> header.
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 25 Jun 2010 21:03:27 +0000 (17:03 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 6 Jul 2010 17:41:46 +0000 (13:41 -0400)
commitc78095bd8c77fca2619769ff8efb639fd100e373
tree9841462486a97a3733f0e5b789e8f6dce47ca62f
parent2db098278118ed58f4b407ceda691e349df043ce
arch/tile: Split the icache flush code off to a generic <arch> header.

This code is used in other places in our system than in Linux, so
to share it we now implement it as an inline function in our low-level
<arch> headers, and instantiate it in one file in Linux's arch/tile/lib.
The file is now cacheflush.c and is C code rather than the strangely-named
and assembler-implemented __invalidate_icache.S.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/tile/include/arch/icache.h [new file with mode: 0644]
arch/tile/include/asm/cacheflush.h
arch/tile/lib/Makefile
arch/tile/lib/__invalidate_icache.S [deleted file]
arch/tile/lib/cacheflush.c [new file with mode: 0644]