linux-mips
[Top] [All Lists]

[PATCH] nullify __ide_flush_{prologue,epilogue} on UP

To: linux-mips@linux-mips.org
Subject: [PATCH] nullify __ide_flush_{prologue,epilogue} on UP
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Sat, 08 Apr 2006 01:25:11 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

diff --git a/include/asm-mips/mach-generic/ide.h 
b/include/asm-mips/mach-generic/ide.h
index 44266e5..e331535 100644
--- a/include/asm-mips/mach-generic/ide.h
+++ b/include/asm-mips/mach-generic/ide.h
@@ -106,14 +106,18 @@ static __inline__ unsigned long ide_defa
 /* MIPS port and memory-mapped I/O string operations.  */
 static inline void __ide_flush_prologue(void)
 {
+#ifdef CONFIG_SMP
        if (cpu_has_dc_aliases)
                preempt_disable();
+#endif
 }
 
 static inline void __ide_flush_epilogue(void)
 {
+#ifdef CONFIG_SMP
        if (cpu_has_dc_aliases)
                preempt_enable();
+#endif
 }
 
 static inline void __ide_flush_dcache_range(unsigned long addr, unsigned long 
size)

<Prev in Thread] Current Thread [Next in Thread>