summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-02-22 02:15:57 +0000
committerjhb <jhb@FreeBSD.org>2001-02-22 02:15:57 +0000
commit0d396b87d337a6f2a1fea3ae75887fe04277c9ab (patch)
tree7e3ff595c8250437cde9ae8db469b738e272c1a6 /sys/kern/kern_intr.c
parentce0e05336a9c50e09088a83d84c5b8b07d5d9e55 (diff)
downloadFreeBSD-src-0d396b87d337a6f2a1fea3ae75887fe04277c9ab.zip
FreeBSD-src-0d396b87d337a6f2a1fea3ae75887fe04277c9ab.tar.gz
Just use the ithread->it_proc directly in a KTR tracepoint instead of
assigning a local var to it and using it, as otherwise the local var wasn't used, and generated a warning in the !KTR case. Noticed by: bde
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index eb4872b..1cd558e 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -407,13 +407,12 @@ swi_sched(void *cookie, int flags)
{
struct intrhand *ih = (struct intrhand *)cookie;
struct ithd *it = ih->ih_ithread;
- struct proc *p = it->it_proc;
int error;
atomic_add_int(&cnt.v_intr, 1); /* one more global interrupt */
CTR3(KTR_INTR, "swi_sched pid %d(%s) need=%d",
- p->p_pid, p->p_comm, it->it_need);
+ it->it_proc->p_pid, it->it_proc->p_comm, it->it_need);
/*
* Set ih_need for this handler so that if the ithread is already
OpenPOWER on IntegriCloud