patch-2.4.22 linux-2.4.22/include/asm-mips64/asm.h

Next file: linux-2.4.22/include/asm-mips64/atomic.h
Previous file: linux-2.4.22/include/asm-mips64/addrspace.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-mips64/asm.h linux-2.4.22/include/asm-mips64/asm.h
@@ -128,8 +128,7 @@
  * MIPS IV implementations are free to treat this as a nop.  The R5000
  * is one of them.  So we should have an option not to use this instruction.
  */
-#if (_MIPS_ISA == _MIPS_ISA_MIPS4 ) || (_MIPS_ISA == _MIPS_ISA_MIPS5) || \
-    (_MIPS_ISA == _MIPS_ISA_MIPS64)
+#ifdef CONFIG_CPU_HAS_PREFETCH
 
 #define PREF(hint,addr)                                 \
 		.set	push;				\
@@ -143,12 +142,12 @@
 		prefx	hint,addr;			\
 		.set	pop
 
-#else
+#else /* !CONFIG_CPU_HAS_PREFETCH */
 
 #define PREF(hint,addr)
 #define PREFX(hint,addr)
 
-#endif
+#endif /* !CONFIG_CPU_HAS_PREFETCH */
 
 /*
  * MIPS ISA IV/V movn/movz instructions and equivalents for older CPUs.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)