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/ia64/ia32 | |
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/ia64/ia32')
-rw-r--r-- | sys/ia64/ia32/ia32_trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ia64/ia32/ia32_trap.c b/sys/ia64/ia32/ia32_trap.c index 630ef0f..58a805f 100644 --- a/sys/ia64/ia32/ia32_trap.c +++ b/sys/ia64/ia32/ia32_trap.c @@ -62,7 +62,7 @@ ia32_syscall(struct trapframe *tf) u_int code; int error, i, narg; - atomic_add_int(&cnt.v_syscall, 1); + PCPU_LAZY_INC(cnt.v_syscall); td = curthread; params = (caddr_t)(tf->tf_special.sp & ((1L<<32)-1)) + @@ -205,7 +205,7 @@ ia32_trap(int vector, struct trapframe *tf) KASSERT(TRAPF_USERMODE(tf), ("%s: In kernel mode???", __func__)); ia64_set_fpsr(IA64_FPSR_DEFAULT); - atomic_add_int(&cnt.v_trap, 1); + PCPU_LAZY_INC(cnt.v_trap); td = curthread; td->td_frame = tf; |