sh: Add a PG_dcache_dirty sanity check in kmap_coherent().
authorPaul Mundt <lethal@linux-sh.org>
Tue, 4 Aug 2009 06:57:44 +0000 (15:57 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 4 Aug 2009 06:57:44 +0000 (15:57 +0900)
commit700487c158163f14e6ff10de770b565c1c993c69
treefb86dee477c2903e975527461070638b03f85970
parent3ed6e129390fb872c3b7e05a232e5d380fbdfb48
sh: Add a PG_dcache_dirty sanity check in kmap_coherent().

This plugs in a BUG_ON() in kmap_coherent() for PG_dcache_dirty pages
to catch when things go horribly wrong. Copied from the MIPS
implementation.

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