summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-06-20 18:26:41 +0000
committerjhb <jhb@FreeBSD.org>2001-06-20 18:26:41 +0000
commitf466ba0f8e7c20c3760c43eb9cc27fe376914bfa (patch)
tree65e9a3da34e31476174170904cdbf305a08ca013 /sys/kern/kern_intr.c
parent5b0875108d891c516cb04e7d063bfb5dc5fdae07 (diff)
downloadFreeBSD-src-f466ba0f8e7c20c3760c43eb9cc27fe376914bfa.zip
FreeBSD-src-f466ba0f8e7c20c3760c43eb9cc27fe376914bfa.tar.gz
Preemption by an interrupt thread is an involuntary switch, not a voluntary
one. Pointy-hat to: me
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r--sys/kern/kern_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index bf69fd9..f7223b8 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -387,7 +387,7 @@ ithread_schedule(struct ithd *ithread, int do_switch)
mtx_intr_enable(&sched_lock);
if (curproc != PCPU_GET(idleproc))
setrunqueue(curproc);
- curproc->p_stats->p_ru.ru_nvcsw++;
+ curproc->p_stats->p_ru.ru_nivcsw++;
mi_switch();
sched_lock.mtx_savecrit = savecrit;
} else
OpenPOWER on IntegriCloud