summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-09-05 22:15:26 +0000
committerpeter <peter@FreeBSD.org>2003-09-05 22:15:26 +0000
commitf79f1784c94bcbf5a38cf80c1a851190040b5fcc (patch)
tree2ebe5bc230d5edd634abdbaf2459ee4b441264ff /sys
parentfb2ef015b9f17f1f90bb5f9f560f852731ee36a9 (diff)
downloadFreeBSD-src-f79f1784c94bcbf5a38cf80c1a851190040b5fcc.zip
FreeBSD-src-f79f1784c94bcbf5a38cf80c1a851190040b5fcc.tar.gz
Log involuntary context switches correctly.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 410bebf..7a08f53 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -243,7 +243,7 @@ ast(struct trapframe *framep)
if (flags & TDF_NEEDRESCHED) {
#ifdef KTRACE
if (KTRPOINT(td, KTR_CSW))
- ktrcsw(1, 0);
+ ktrcsw(1, 1);
#endif
mtx_lock_spin(&sched_lock);
sched_prio(td, kg->kg_user_pri);
@@ -252,7 +252,7 @@ ast(struct trapframe *framep)
mtx_unlock_spin(&sched_lock);
#ifdef KTRACE
if (KTRPOINT(td, KTR_CSW))
- ktrcsw(0, 0);
+ ktrcsw(0, 1);
#endif
}
if (flags & TDF_NEEDSIGCHK) {
OpenPOWER on IntegriCloud