Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=adac9570966eb2eb137209e552b258d4d1d4825b
Commit:     adac9570966eb2eb137209e552b258d4d1d4825b
Parent:     26b7a78c55fbc0e23a7dc19e89fd50f200efc002
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 28 10:54:01 2006 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Tue Feb 13 10:54:44 2007 +0900

    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 <[EMAIL PROTECTED]>
---
 arch/sh/mm/tlb-flush.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/mm/tlb-flush.c b/arch/sh/mm/tlb-flush.c
index 9347534..ef3e4d4 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 */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to