summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
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/powerpc
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/powerpc')
-rw-r--r--sys/powerpc/aim/trap.c8
-rw-r--r--sys/powerpc/powerpc/trap.c8
2 files changed, 4 insertions, 12 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c
index 4874093..83f0b86 100644
--- a/sys/powerpc/aim/trap.c
+++ b/sys/powerpc/aim/trap.c
@@ -473,12 +473,8 @@ syscall(struct trapframe *frame)
*/
STOPEVENT(p, S_SCX, code);
-#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);
}
diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c
index 4874093..83f0b86 100644
--- a/sys/powerpc/powerpc/trap.c
+++ b/sys/powerpc/powerpc/trap.c
@@ -473,12 +473,8 @@ syscall(struct trapframe *frame)
*/
STOPEVENT(p, S_SCX, code);
-#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