]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: Rework sh4_flush_cache_page() for coherent kmap mapping.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 9 Sep 2009 07:06:39 +0000 (16:06 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 9 Sep 2009 07:06:39 +0000 (16:06 +0900)
commitdeaef20e9789d93c06d2d3b5ffc99939814802ca
tree1f35d8baa4938c772201f983aed7761a88ce51d0
parentbd6df57481b329dfeeb4889068848ee4f4761561
sh: Rework sh4_flush_cache_page() for coherent kmap mapping.

This builds on top of the MIPS r4k code that does roughly the same thing.
This permits the use of kmap_coherent() for mapped pages with dirty
dcache lines and falls back on kmap_atomic() otherwise.

This also fixes up a problem with the alias check and defers to
shm_align_mask directly.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/cache-sh4.c