summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-05-05 13:36:28 +0000
committervisa <visa@openbsd.org>2019-05-05 13:36:28 +0000
commit6baa5ad573f9ad6ef875331d4b1d965b87d98ff6 (patch)
treedf6889071079c9b67da684a7264357e24537a6a5
parentTurn need_resched() and signotify() into proper functions on mips64. (diff)
downloadwireguard-openbsd-6baa5ad573f9ad6ef875331d4b1d965b87d98ff6.tar.xz
wireguard-openbsd-6baa5ad573f9ad6ef875331d4b1d965b87d98ff6.zip
Call cpu_unidle() from need_resched() on mips64 like most
other architectures.
-rw-r--r--sys/arch/mips64/mips64/cpu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/cpu.c b/sys/arch/mips64/mips64/cpu.c
index b5bbf3b82dc..336aaf85091 100644
--- a/sys/arch/mips64/mips64/cpu.c
+++ b/sys/arch/mips64/mips64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.71 2019/05/05 13:28:14 visa Exp $ */
+/* $OpenBSD: cpu.c,v 1.72 2019/05/05 13:36:28 visa Exp $ */
/*
* Copyright (c) 1997-2004 Opsycon AB (www.opsycon.se)
@@ -477,8 +477,10 @@ need_resched(struct cpu_info *ci)
{
ci->ci_want_resched = 1;
- if (ci->ci_curproc != NULL)
+ if (ci->ci_curproc != NULL) {
aston(ci->ci_curproc);
+ cpu_unidle(ci);
+ }
}
#ifdef MULTIPROCESSOR