summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/kern/kern_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/kern/kern_intr.c')
-rw-r--r--freebsd/sys/kern/kern_intr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/freebsd/sys/kern/kern_intr.c b/freebsd/sys/kern/kern_intr.c
index 30cb5d64..88ea9e63 100644
--- a/freebsd/sys/kern/kern_intr.c
+++ b/freebsd/sys/kern/kern_intr.c
@@ -189,7 +189,9 @@ ithread_update(struct intr_thread *ithd)
_Thread_Set_name(td->td_thread, ie->ie_fullname);
#endif /* __rtems__ */
#ifdef KTR
+#ifndef __rtems__
sched_clear_tdname(td);
+#endif /* __rtems__ */
#endif
thread_lock(td);
#ifndef __rtems__
@@ -1242,11 +1244,7 @@ ithread_loop(void *arg)
int wake;
td = curthread;
-#ifndef __rtems__
p = td->td_proc;
-#else /* __rtems__ */
- p = NULL;
-#endif /* __rtems__ */
ithd = (struct intr_thread *)arg;
KASSERT(ithd->it_thread == td,
("%s: ithread and proc linkage out of sync", __func__));