aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2007-05-31 22:52:15 +0000
committerAttilio Rao <attilio@FreeBSD.org>2007-05-31 22:52:15 +0000
commit2feb50bf7d6fc45ff13865dd9e480b816e1386a8 (patch)
tree10bf0f11ceeb18c6b03947eb85223abbbbf9cc67 /sys/kern/kern_synch.c
parent281660174a65a6ca30cf2079274cc6560357f6ad (diff)
downloadsrc-2feb50bf7d6fc45ff13865dd9e480b816e1386a8.tar.gz
src-2feb50bf7d6fc45ff13865dd9e480b816e1386a8.zip
Revert VMCNT_* operations introduction.
Probabilly, a general approach is not the better solution here, so we should solve the sched_lock protection problems separately. Requested by: alc Approved by: jeff (mentor)
Notes
Notes: svn path=/head/; revision=170170
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 9d571b05e491..d61dddf36b4c 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -433,7 +433,7 @@ mi_switch(int flags, struct thread *newtd)
/*
* Finish up stats for outgoing thread.
*/
- VMCNT_ADD(swtch, 1);
+ cnt.v_swtch++;
PCPU_SET(switchtime, new_switchtime);
PCPU_SET(switchticks, ticks);
CTR4(KTR_PROC, "mi_switch: old thread %ld (kse %p, pid %ld, %s)",