diff options
| author | Attilio Rao <attilio@FreeBSD.org> | 2007-06-04 21:45:18 +0000 |
|---|---|---|
| committer | Attilio Rao <attilio@FreeBSD.org> | 2007-06-04 21:45:18 +0000 |
| commit | b4b70819619b531a5683c678974a7b18e8b09937 (patch) | |
| tree | 9c942b3b9815da8b9fd9ecd5f775fdc264e8e2dc /sys/kern/kern_synch.c | |
| parent | 6759608248f30eb575170c0700cc99140e0bdc35 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_synch.c')
| -rw-r--r-- | sys/kern/kern_synch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index b75dcf29362d..c45e84692aba 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -412,7 +412,7 @@ mi_switch(int flags, struct thread *newtd) td->td_runtime += new_switchtime - PCPU_GET(switchtime); PCPU_SET(switchtime, new_switchtime); td->td_generation++; /* bump preempt-detect counter */ - cnt.v_swtch++; + PCPU_INC(cnt.v_swtch); PCPU_SET(switchticks, ticks); CTR4(KTR_PROC, "mi_switch: old thread %ld (kse %p, pid %ld, %s)", td->td_tid, td->td_sched, p->p_pid, p->p_comm); |
