From: Paul Mundt Date: Wed, 9 Sep 2009 07:06:39 +0000 (+0900) Subject: sh: Rework sh4_flush_cache_page() for coherent kmap mapping. X-Git-Tag: v2.6.33-rc1~347^2~27^2~104^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deaef20e9789d93c06d2d3b5ffc99939814802ca;p=pandora-kernel.git 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 --- Reading git-diff-tree failed