From f466ba0f8e7c20c3760c43eb9cc27fe376914bfa Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 20 Jun 2001 18:26:41 +0000 Subject: Preemption by an interrupt thread is an involuntary switch, not a voluntary one. Pointy-hat to: me --- sys/kern/kern_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_intr.c') 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 -- cgit v1.1