sh: Add kmap_coherent()/kunmap_coherent() interface for SH-4.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jul 2007 04:28:26 +0000 (13:28 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jul 2007 04:28:26 +0000 (13:28 +0900)
commit8cf1a74305688c85fc8d23ab7432a0c447ee6413
treed43af5f2515db35ef6a705e5929780f91d34e898
parentf695baf2df9e0413d3521661070103711545207a
sh: Add kmap_coherent()/kunmap_coherent() interface for SH-4.

This wires up kmap_coherent() and kunmap_coherent() on SH-4, and
moves away from the p3map_mutex and reserved P3 space, opting to
use fixmaps for colouring instead.

The copy_user_page()/clear_user_page() implementations are moved
to this, which fixes the nasty blowups with spinlock debugging
as a result of having some of these calls nested under the page
table lock.

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