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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Atsushi Nemoto <anemo@xxxxxxxxxxxxx>

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)


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux