diff options
| author | Matthew Dillon <dillon@FreeBSD.org> | 2002-04-04 21:38:47 +0000 |
|---|---|---|
| committer | Matthew Dillon <dillon@FreeBSD.org> | 2002-04-04 21:38:47 +0000 |
| commit | 80f5c8bf42a972a94bca65b540ae22342fae86c5 (patch) | |
| tree | 145ba66a57ff6db67725dd5e965f3db61810cc51 /sys/amd64 | |
| parent | 947ba7d8b9d18635dd664ccee28ec669de1395ef (diff) | |
Notes
Diffstat (limited to 'sys/amd64')
| -rw-r--r-- | sys/amd64/amd64/trap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index b0392849fd80..30af1b66a25b 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -941,7 +941,11 @@ syscall(frame) int args[8]; u_int code; - atomic_add_int(&cnt.v_syscall, 1); + /* + * note: PCPU_LAZY_INC() can only be used if we can afford + * occassional inaccuracy in the count. + */ + PCPU_LAZY_INC(cnt.v_syscall); #ifdef DIAGNOSTIC if (ISPL(frame.tf_cs) != SEL_UPL) { |
