From: Paul Mundt Date: Thu, 28 Dec 2006 01:54:01 +0000 (+0900) Subject: sh: Don't set reserved _PAGE_WT bit on SH-3. X-Git-Tag: v2.6.21-rc1~179^2~22 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adac9570966eb2eb137209e552b258d4d1d4825b;p=linux-2.6 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 --- diff --git a/arch/sh/mm/tlb-flush.c b/arch/sh/mm/tlb-flush.c index 9347534aa8..ef3e4d4778 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 */