diff options
author | visa <visa@openbsd.org> | 2019-11-02 05:31:20 +0000 |
---|---|---|
committer | visa <visa@openbsd.org> | 2019-11-02 05:31:20 +0000 |
commit | dfa1de3e618fc84112edc97684a632dc38416c64 (patch) | |
tree | 6adbc7d6d7e6b3ff2876fc3e63b6f09aac9440f2 /sys/sys/syscall_mi.h | |
parent | switch ASN1_STRING_data() with constified ASN1_STRING_get0_data() (diff) | |
download | wireguard-openbsd-dfa1de3e618fc84112edc97684a632dc38416c64.tar.xz wireguard-openbsd-dfa1de3e618fc84112edc97684a632dc38416c64.zip |
Move dead procs to the reaper queue immediately after context switch.
This eliminates a forced context switch to the idle proc. In addition,
sched_exit() no longer needs to sum proc runtime because mi_switch()
will do it.
OK mpi@ a while ago
Diffstat (limited to 'sys/sys/syscall_mi.h')
-rw-r--r-- | sys/sys/syscall_mi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/syscall_mi.h b/sys/sys/syscall_mi.h index 3909bb419d7..571447f790e 100644 --- a/sys/sys/syscall_mi.h +++ b/sys/sys/syscall_mi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall_mi.h,v 1.21 2019/06/14 05:52:42 deraadt Exp $ */ +/* $OpenBSD: syscall_mi.h,v 1.22 2019/11/02 05:31:20 visa Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -138,6 +138,7 @@ mi_child_return(struct proc *p) KERNEL_UNLOCK(); #endif + dispatch_deadproc(); userret(p); #ifdef KTRACE |