commit | deaef20e9789d93c06d2d3b5ffc99939814802ca | [log] [tgz] |
---|---|---|
author | Paul Mundt <lethal@linux-sh.org> | Wed Sep 09 16:06:39 2009 +0900 |
committer | Paul Mundt <lethal@linux-sh.org> | Wed Sep 09 16:06:39 2009 +0900 |
tree | 1f35d8baa4938c772201f983aed7761a88ce51d0 | |
parent | bd6df57481b329dfeeb4889068848ee4f4761561 [diff] |
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>