summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/aim/trap.c')
-rw-r--r--sys/powerpc/aim/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c
index cee51bc..a19cacc 100644
--- a/sys/powerpc/aim/trap.c
+++ b/sys/powerpc/aim/trap.c
@@ -147,7 +147,7 @@ trap(struct trapframe *frame)
int sig, type, user;
u_int sticks, ucode;
- atomic_add_int(&cnt.v_trap, 1);
+ PCPU_LAZY_INC(cnt.v_trap);
td = PCPU_GET(curthread);
p = td->td_proc;
@@ -338,7 +338,7 @@ syscall(struct trapframe *frame)
td = PCPU_GET(curthread);
p = td->td_proc;
- atomic_add_int(&cnt.v_syscall, 1);
+ PCPU_LAZY_INC(cnt.v_syscall);
if (p->p_flag & P_SA)
thread_user_enter(td);
OpenPOWER on IntegriCloud