]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Fix buggy invocations of kmap_coherent()
authorRalf Baechle <ralf@linux-mips.org>
Sat, 16 Feb 2008 22:34:25 +0000 (22:34 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 19 Feb 2008 17:01:31 +0000 (17:01 +0000)
commit2344bfb64a3fe545aa28b276470ac4c0e6e1d307
tree3ef7b8713edfccc96ad1ce57a431828656d92d82
parent22ee83d64439267d30121dc1a13dd22e33869dd6
[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