sh: Disable unsupportable prefetching on SH-3.

Previous thread: serial: sh-sci: console drainage by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:21 pm. (1 message)

Next thread: sound: usb-audio: fix queue length check for high speed devices by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:19 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:21 pm

Gitweb:     http://git.kernel.org/linus/a73090ffaf0f6853880d9ac3fff7e5d88215131a
Commit:     a73090ffaf0f6853880d9ac3fff7e5d88215131a
Parent:     0197f21ca5c5ed0df2a14a60ef073e8163e6533b
Author:     Paul Mundt <lethal@linux-sh.org>
AuthorDate: Fri Feb 27 16:42:05 2009 +0900
Committer:  Paul Mundt <lethal@linux-sh.org>
CommitDate: Fri Feb 27 16:42:05 2009 +0900

    sh: Disable unsupportable prefetching on SH-3.
    
    The SH-3 does not support 'pref'-based prefetching, only SH-2A and SH-4A
    parts do. Remove SH-3 from the list.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---
 arch/sh/include/asm/processor_32.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h
index dcaed24..efdd78a 100644
--- a/arch/sh/include/asm/processor_32.h
+++ b/arch/sh/include/asm/processor_32.h
@@ -191,8 +191,7 @@ extern unsigned long get_wchan(struct task_struct *p);
 
 #define user_stack_pointer(_regs)	((_regs)->regs[15])
 
-#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH3) || \
-    defined(CONFIG_CPU_SH4)
+#if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4)
 #define PREFETCH_STRIDE		L1_CACHE_BYTES
 #define ARCH_HAS_PREFETCH
 #define ARCH_HAS_PREFETCHW
--

Previous thread: serial: sh-sci: console drainage by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:21 pm. (1 message)

Next thread: sound: usb-audio: fix queue length check for high speed devices by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:19 pm. (1 message)