patch-2.4.22 linux-2.4.22/include/asm-mips/watch.h

Next file: linux-2.4.22/include/asm-mips/xxs1500.h
Previous file: linux-2.4.22/include/asm-mips/war.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-mips/watch.h linux-2.4.22/include/asm-mips/watch.h
@@ -18,20 +18,18 @@
 	wr_load = 2
 };
 
-extern char watch_available;
-
 extern asmlinkage void __watch_set(unsigned long addr, enum wref_type ref);
 extern asmlinkage void __watch_clear(void);
 extern asmlinkage void __watch_reenable(void);
 
 #define watch_set(addr, ref)					\
-	if (watch_available)					\
+	if (cpu_has_watch)					\
 		__watch_set(addr, ref)
 #define watch_clear()						\
-	if (watch_available)					\
+	if (cpu_has_watch)					\
 		__watch_clear()
 #define watch_reenable()					\
-	if (watch_available)					\
+	if (cpu_has_watch)					\
 		__watch_reenable()
 
 #endif /* __ASM_WATCH_H */

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