From 6e59a054e1e300775aef4e7fd75b7ace25f2a17b Mon Sep 17 00:00:00 2001 From: mpi Date: Fri, 6 Sep 2024 08:21:21 +0000 Subject: [PATCH] Remove incorrect increment of the context switch counter. From Christian Ludwig. ok claudio@ --- sys/kern/kern_exit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index fb611534bf8..68830a47326 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.232 2024/08/16 16:19:03 mpi Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.233 2024/09/06 08:21:21 mpi Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -390,7 +390,6 @@ exit1(struct proc *p, int xexit, int xsig, 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); panic("cpu_exit returned"); } -- 2.20.1