summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-03-04 21:03:05 +0000
committerjhb <jhb@FreeBSD.org>2003-03-04 21:03:05 +0000
commite4bcd25517da2e44fd854859cc6ead7dcfe3df3a (patch)
treed32954415444ccb8c42b0a457f6f0e6e15a0d64e /sys/ia64
parente87dfc0cdec66dcab96cfd816e8a33d1c59dc261 (diff)
downloadFreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.zip
FreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.tar.gz
Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls
to WITNESS_WARN().
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/trap.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c
index 9aab532..30f43f5 100644
--- a/sys/ia64/ia64/trap.c
+++ b/sys/ia64/ia64/trap.c
@@ -904,12 +904,8 @@ syscall(int code, u_int64_t *args, struct trapframe *framep)
#ifdef DIAGNOSTIC
cred_free_thread(td);
#endif
-#ifdef WITNESS
- if (witness_list(td)) {
- panic("system call %s returning with mutex(s) held\n",
- syscallnames[code]);
- }
-#endif
+ WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning",
+ syscallnames[code]);
mtx_assert(&sched_lock, MA_NOTOWNED);
mtx_assert(&Giant, MA_NOTOWNED);
}
@@ -1081,13 +1077,8 @@ ia32_syscall(struct trapframe *framep)
#ifdef DIAGNOSTIC
cred_free_thread(td);
#endif
-
-#ifdef WITNESS
- if (witness_list(td)) {
- panic("system call %s returning with mutex(s) held\n",
- syscallnames[code]);
- }
-#endif
+ WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning",
+ syscallnames[code]);
mtx_assert(&sched_lock, MA_NOTOWNED);
mtx_assert(&Giant, MA_NOTOWNED);
}
OpenPOWER on IntegriCloud