diff options
author | jhb <jhb@FreeBSD.org> | 2001-06-25 18:27:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-06-25 18:27:33 +0000 |
commit | fdfd5d01a716f63bcaf43182ffb35b88a505f1b7 (patch) | |
tree | 28d853c78cc7a7982f93cc81d9d121f5366a713f /sys/kern/kern_intr.c | |
parent | 5a93a436f60afb2ec81f61929b9355f6c41bf57a (diff) | |
download | FreeBSD-src-fdfd5d01a716f63bcaf43182ffb35b88a505f1b7.zip FreeBSD-src-fdfd5d01a716f63bcaf43182ffb35b88a505f1b7.tar.gz |
Count the switch when an ithread goes idle as a voluntary context switch.
Submitted by: bde
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r-- | sys/kern/kern_intr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index f7223b8..ac9213b 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -541,6 +541,7 @@ restart: if (ithd->it_enable != NULL) ithd->it_enable(ithd->it_vector); p->p_stat = SWAIT; /* we're idle */ + p->p_stats->p_ru.ru_nvcsw++; CTR1(KTR_INTR, __func__ ": pid %d: done", p->p_pid); mi_switch(); CTR1(KTR_INTR, __func__ ": pid %d: resumed", p->p_pid); |