summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-06-23 13:46:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-06-23 13:46:06 +0000
commit93464a5bb604a1cdd00a71845d69e3c6ab772286 (patch)
tree0e6519039dacc55faeb70bb6a620af7ac2dcebbc /sys/kern/kern_exit.c
parent75d87370a56e6c69b9ad8e0c6a0d3c5c53778418 (diff)
consistantly count context switches on exit; miod@ ok
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 04b3b75988d..4c0a01cf19c 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.61 2006/06/15 20:08:01 miod Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.62 2006/06/23 13:46:05 mickey Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -351,6 +351,7 @@ exit1(struct proc *p, int rv, int flags)
* Note that cpu_exit() will end with a call equivalent to
* cpu_switch(), finishing our execution (pun intended).
*/
+ uvmexp.swtch++;
cpu_exit(p);
}