| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: IP22 doesn't shutdown properly, Martin Michlmayr |
|---|---|
| Next by Date: | [PATCH] use __ffs() instead of ffs() on waybit calculation, Atsushi Nemoto |
| Previous by Thread: | Re: IP22 doesn't shutdown properly, Martin Michlmayr |
| Next by Thread: | Re: [PATCH] nullify __ide_flush_{prologue,epilogue} on UP, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |