diff options
author | jhb <jhb@FreeBSD.org> | 2005-04-12 23:18:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-04-12 23:18:54 +0000 |
commit | f9da7305b5117faca349d5ba989239117812a123 (patch) | |
tree | a2ed521163c0f43afce96ee2991e8272378005c3 /sys/kern/kern_intr.c | |
parent | e62b86cdc54df4ea3928194426ba3744837a7545 (diff) | |
download | FreeBSD-src-f9da7305b5117faca349d5ba989239117812a123.zip FreeBSD-src-f9da7305b5117faca349d5ba989239117812a123.tar.gz |
Use PCPU_LAZY_INC() for cnt.v_{intr,trap,syscalls} rather than atomic
operations in some places and simple non-per CPU math in others.
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r-- | sys/kern/kern_intr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index c1de705..837a2bb 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -457,7 +457,7 @@ swi_sched(void *cookie, int flags) struct ithd *it = ih->ih_ithread; int error; - atomic_add_int(&cnt.v_intr, 1); /* one more global interrupt */ + PCPU_LAZY_INC(cnt.v_intr); CTR3(KTR_INTR, "swi_sched pid %d(%s) need=%d", it->it_td->td_proc->p_pid, it->it_td->td_proc->p_comm, it->it_need); |