patch-2.4.22 linux-2.4.22/include/asm-mips64/watch.h
Next file: linux-2.4.22/include/asm-ppc/a.out.h
Previous file: linux-2.4.22/include/asm-mips64/war.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
2003-08-25 04:44:44.000000000 -0700
- Orig file:
linux-2.4.21/include/asm-mips64/watch.h
- Orig date:
2001-02-04 21:48:46.000000000 -0800
diff -urN linux-2.4.21/include/asm-mips64/watch.h linux-2.4.22/include/asm-mips64/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)