]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: highmem: Turn flush_cache_kmaps into a no-op.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 28 Jan 2016 13:26:00 +0000 (14:26 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 7 Mar 2016 10:49:54 +0000 (11:49 +0100)
commitc1f4c792f6a116e1f8a1c89df7d3af68c84c1692
tree9b7fc2ddbf5ec4c30f86b6179b1a43e32502a046
parent56991e4225d413305821d6eb7564cc495f093da6
MIPS: highmem: Turn flush_cache_kmaps into a no-op.

It was calling flush_cache_all() which is a no-op since a long time anyway
and which was overkill in the old days when it was actually doing something
because only the D-cache needs to be flushed, never the I-cache, never
the S-cache.  Since however highmem on MIPS is still only supported on
processors that don't suffer from cache aliases, we could turn
flush_cache_kmaps() into a no-op - but for paranoia's sake we rather make
it BUG_ON(cpu_has_dc_aliases()).

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/highmem.h