summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-12-28 02:54:01 +0100
committerPaul Mundt <lethal@linux-sh.org>2007-02-13 02:54:44 +0100
commitadac9570966eb2eb137209e552b258d4d1d4825b (patch)
tree2127b09451959a794c2c786a6ef679c59d90ef25 /arch/sh/mm
parentsh: Lazy dcache writeback optimizations. (diff)
downloadlinux-adac9570966eb2eb137209e552b258d4d1d4825b.tar.xz
linux-adac9570966eb2eb137209e552b258d4d1d4825b.zip
sh: Don't set reserved _PAGE_WT bit on SH-3.
Only SH-4 needs to set _PAGE_WT when using write-through caching, don't attempt to set it on SH-3 where it ends up being a reserved bit. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r--arch/sh/mm/tlb-flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/tlb-flush.c b/arch/sh/mm/tlb-flush.c
index 9347534aa894..ef3e4d477864 100644
--- a/arch/sh/mm/tlb-flush.c
+++ b/arch/sh/mm/tlb-flush.c
@@ -175,7 +175,7 @@ void update_mmu_cache(struct vm_area_struct *vma,
/* Set PTEL register */
pteval &= _PAGE_FLAGS_HARDWARE_MASK; /* drop software flags */
-#ifdef CONFIG_SH_WRITETHROUGH
+#if defined(CONFIG_SH_WRITETHROUGH) && defined(CONFIG_CPU_SH4)
pteval |= _PAGE_WT;
#endif
/* conveniently, we want all the software flags to be 0 anyway */