[MIPS] Fix buggy invocations of kmap_coherent()
commit9a74b3eb22f2d67a5681301f52aca5b7703382c8
authorRalf Baechle <ralf@linux-mips.org>
Sat, 16 Feb 2008 22:34:25 +0000 (16 22:34 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 19 Feb 2008 17:01:31 +0000 (19 17:01 +0000)
tree3ef7b8713edfccc96ad1ce57a431828656d92d82
parentc42d95d6c49ce9c678a9d10aeb3f526c850d66dc
[MIPS] Fix buggy invocations of kmap_coherent()

kmap_coherent will only work correctly if the page it is called on is
not marked dirty.  If it's dirty the kernel address of the page should
be used instead of a temporary mapping.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/cache.c
arch/mips/mm/init.c