sh: Fix alias calculation for non-aliasing cases.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 24 Sep 2007 07:38:25 +0000 (16:38 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Sep 2007 07:38:25 +0000 (16:38 +0900)
commitd10040f7eb808cd984b563d1cf727a1020990a2e
tree08bb8f1357b41ee194b7f198b82af90fe9db8ccb
parent1a442fe02d205d6980202b07f799ab9336e72ad7
sh: Fix alias calculation for non-aliasing cases.

There was an off-by-1 on the cache alias detection logic on SH-4,
which caused n_aliases to always be 1 even when the page size
precluded the existence of aliases.

With this corrected, 64KB pages happily reports n_aliases == 0, and
hits the appropriate fast paths in the flushing routines.

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