]> git.baikalelectronics.ru Git - kernel.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>
Fri, 13 May 2016 12:01:38 +0000 (14:01 +0200)
commit445744b55029111949f4e1d5d6128a3883ba184d
tree4d242fab4556c7ff5ea856b556cbd42ae92be021
parent6c04d60a9b1a304fcc7ac17bbc13b78f2f2d02c1
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