sh: Ensure all PG_dcache_dirty pages are written back.
authorMarkus Pietrek <Markus.Pietrek@emtrion.de>
Thu, 24 Dec 2009 06:12:02 +0000 (15:12 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 24 Dec 2009 06:12:02 +0000 (15:12 +0900)
commit76382b5bdb77c29ab430e1b82ef1c604c8dd113b
tree98a672c96d10f1426eb6d3bc4c525e34a974627c
parent9503e891d28e91961026c778ec251dfe886626fb
sh: Ensure all PG_dcache_dirty pages are written back.

With some of the cache rework an address aliasing optimization was added,
but this managed to fail on certain mappings resulting in pages with
PG_dcache_dirty set never writing back their dcache lines. This patch
reverts to the earlier behaviour of simply always writing back when the
dirty bit is set.

Signed-off-by: Markus Pietrek <Markus.Pietrek@emtrion.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/cache.c