diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-07-31 04:07:28 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-09-20 22:57:46 -0400 |
commit | e7bd34a15b85655f24d1b45edbe3bdfebf9d027e (patch) | |
tree | 051647273266582fe95dcc5cf008534c264be5ae /arch/sh/mm/pmb.c | |
parent | ac919986d7dfc5d1d9f5585521307f222a8ebeaf (diff) |
sh: Support explicit L1 cache disabling.
This reworks the cache mode configuration in Kconfig, and allows for
explicit selection of write-back/write-through/off configurations.
All of the cache flushing routines are optimized away for the off
case.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/pmb.c')
-rw-r--r-- | arch/sh/mm/pmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index a08a4a958add..7d43758dc244 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c | |||
@@ -145,7 +145,7 @@ repeat: | |||
145 | 145 | ||
146 | ctrl_outl(vpn | PMB_V, mk_pmb_addr(pos)); | 146 | ctrl_outl(vpn | PMB_V, mk_pmb_addr(pos)); |
147 | 147 | ||
148 | #ifdef CONFIG_SH_WRITETHROUGH | 148 | #ifdef CONFIG_CACHE_WRITETHROUGH |
149 | /* | 149 | /* |
150 | * When we are in 32-bit address extended mode, CCR.CB becomes | 150 | * When we are in 32-bit address extended mode, CCR.CB becomes |
151 | * invalid, so care must be taken to manually adjust cacheable | 151 | * invalid, so care must be taken to manually adjust cacheable |