summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-05-05 13:36:29 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-05-05 13:36:29 +0000
commitc63a62d4d9d02c587bf759a07763765cbb2a76a7 (patch)
treee9c703057e85d2cd78150c68996d3e74c39d0de2 /sys
parentf71edfdce760907b1896f742757a693ead0a7467 (diff)
Call cpu_unidle() from need_resched() on mips64 like most
other architectures.
Diffstat (limited to 'sys')
-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