summaryrefslogtreecommitdiffstats
path: root/sys/amd64/ia32
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-04-12 23:18:54 +0000
committerjhb <jhb@FreeBSD.org>2005-04-12 23:18:54 +0000
commitf9da7305b5117faca349d5ba989239117812a123 (patch)
treea2ed521163c0f43afce96ee2991e8272378005c3 /sys/amd64/ia32
parente62b86cdc54df4ea3928194426ba3744837a7545 (diff)
downloadFreeBSD-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/amd64/ia32')
-rw-r--r--sys/amd64/ia32/ia32_syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/ia32/ia32_syscall.c b/sys/amd64/ia32/ia32_syscall.c
index 39eb81a..f159cfb 100644
--- a/sys/amd64/ia32/ia32_syscall.c
+++ b/sys/amd64/ia32/ia32_syscall.c
@@ -106,7 +106,7 @@ ia32_syscall(struct trapframe frame)
* note: PCPU_LAZY_INC() can only be used if we can afford
* occassional inaccuracy in the count.
*/
- cnt.v_syscall++;
+ PCPU_LAZY_INC(cnt.v_syscall);
sticks = td->td_sticks;
td->td_frame = &frame;
OpenPOWER on IntegriCloud