sh: disabled cache handling fix.
authorMagnus Damm <damm@opensource.se>
Fri, 16 Oct 2009 05:38:48 +0000 (14:38 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 16 Oct 2009 05:38:48 +0000 (14:38 +0900)
commit5fb80ae8bd7549034845ebfba694d483070b768b
tree9657db9a4c7ad10b90d51dd22851f594f9e2d9f6
parenta7a7c0e1d12bcfb4a96cae439951232b08c91841
sh: disabled cache handling fix.

Add code to handle the cache disabled case. Fixes breakage introduced by
37443ef3f0406e855e169c87ae3f4ffb4b6ff635 ("sh: Migrate SH-4 cacheflush
ops to function pointers."). Without this patch configuring caches off
with CONFIG_CACHE_OFF=y makes kfr2r09 and migo-r lock up in fbdev
deferred io or early user space.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/cache.c