summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_trap.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-10-18 04:48:09 +0000
committerbde <bde@FreeBSD.org>2006-10-18 04:48:09 +0000
commit57b90fd011d2563ca80c7ab82d05b1ea024be3f4 (patch)
tree224964ba269f457106a9507f477fbfdbe93ee949 /sys/kern/subr_trap.c
parent90ebfcc21816f68697583b2914951c5906edf261 (diff)
downloadFreeBSD-src-57b90fd011d2563ca80c7ab82d05b1ea024be3f4.zip
FreeBSD-src-57b90fd011d2563ca80c7ab82d05b1ea024be3f4.tar.gz
kern_intr.c:
- Count (scheduling of) software interrupts (SWIs) as SWIs, not as hardware interrupts. - Don't count (scheduling of) delayed SWIs as interrupts at all, since in the delayed case it is expected that there are many more scheduling calls than handling calls. Perhaps all interrupts should be counted only when they are handled, but it is only counts of delayed SWIs that shouldn never be combined with the other counts. subr_trap.c: - Count (handling of) Asynchronous System Traps (ASTs) as traps, not as software interrupts. Before these changes, the counter for SWIs only counted ASTs, and SWIs weren't counted separately, but a subcounter for ASTs alone is less needed than for most other exception sources. 4.4BSD-Lite uses the counters for similar things (actually matching their names) on its main arches (hp300, ..., !i386) where more of the exceptions are in hardware.
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r--sys/kern/subr_trap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index c6af66b..d5c03b7 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -190,7 +190,7 @@ ast(struct trapframe *framep)
#endif
td->td_flags &= ~(TDF_ASTPENDING | TDF_NEEDSIGCHK |
TDF_NEEDRESCHED | TDF_INTERRUPT);
- cnt.v_soft++;
+ cnt.v_trap++;
mtx_unlock_spin(&sched_lock);
/*
OpenPOWER on IntegriCloud