sh: Fix dcache flushing for N-way write-through caches.
authorMatt Fleming <matt@console-pimps.org>
Tue, 1 Sep 2009 04:32:48 +0000 (13:32 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 1 Sep 2009 04:32:48 +0000 (13:32 +0900)
commitce3f7cb96e67d6518c7fc7b361a76409c3817d64
tree183e635fb7b855f348a6e4ba42a1da0a2692a4b2
parent1279b7f1168ad6a2606191090f8a96eba64766a4
sh: Fix dcache flushing for N-way write-through caches.

This adopts the special-cased 2-way write-through dcache flusher for
N-ways and moves it in to the generic path. Assignment is done at runtime
via the check for the CCR_CACHE_WT bit in the same path as the per-way
writeback flushers.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/cache-sh4.c