summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-08-31 06:12:13 +0000
committerjulian <julian@FreeBSD.org>2004-08-31 06:12:13 +0000
commitee753ed190029f2bb1071fa1905073ad15121ae5 (patch)
treedddf557370c3f26fcb7ce5b74984fd362556bf89 /sys/sparc64
parentd3a487d5866b728b29cf8da175a0ceae5e01eb2f (diff)
downloadFreeBSD-src-ee753ed190029f2bb1071fa1905073ad15121ae5.zip
FreeBSD-src-ee753ed190029f2bb1071fa1905073ad15121ae5.tar.gz
Remove sched_free_thread() which was only used
in diagnostics. It has outlived its usefulness and has started causing panics for people who turn on DIAGNOSTIC, in what is otherwise good code. MFC after: 2 days
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/trap.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c
index 15a7b1e..d5ec2c2 100644
--- a/sys/sparc64/sparc64/trap.c
+++ b/sys/sparc64/sparc64/trap.c
@@ -290,9 +290,6 @@ trap(struct trapframe *tf)
userret(td, tf, sticks);
mtx_assert(&Giant, MA_NOTOWNED);
-#ifdef DIAGNOSTIC
- cred_free_thread(td);
-#endif
} else {
KASSERT((tf->tf_type & T_KERNEL) != 0,
("trap: kernel trap isn't"));
@@ -659,9 +656,6 @@ syscall(struct trapframe *tf)
PTRACESTOP_SC(p, td, S_PT_SCX);
-#ifdef DIAGNOSTIC
- cred_free_thread(td);
-#endif
WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning",
(code >= 0 && code < SYS_MAXSYSCALL) ? syscallnames[code] : "???");
mtx_assert(&sched_lock, MA_NOTOWNED);
OpenPOWER on IntegriCloud