Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't try to IPI other CPUs early on. Fixes a cras...



details:   https://anonhg.NetBSD.org/src/rev/24f22105cfca
branches:  trunk
changeset: 461485:24f22105cfca
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Nov 27 20:31:13 2019 +0000

description:
Don't try to IPI other CPUs early on.  Fixes a crash on sparc64.  Thanks
to martin@ for diagnosing.

diffstat:

 sys/kern/kern_runq.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f447a9d0a016 -r 24f22105cfca sys/kern/kern_runq.c
--- a/sys/kern/kern_runq.c      Wed Nov 27 19:21:36 2019 +0000
+++ b/sys/kern/kern_runq.c      Wed Nov 27 20:31:13 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_runq.c,v 1.49 2019/11/23 22:35:08 ad Exp $        */
+/*     $NetBSD: kern_runq.c,v 1.50 2019/11/27 20:31:13 ad Exp $        */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.49 2019/11/23 22:35:08 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.50 2019/11/27 20:31:13 ad Exp $");
 
 #include "opt_dtrace.h"
 
@@ -368,7 +368,7 @@
         * If the priority level we're evaluating wouldn't cause a new LWP
         * to be run on the CPU, then we have nothing to do.
         */
-       if (pri <= spc->spc_curpriority) {
+       if (pri <= spc->spc_curpriority || !mp_online) {
                if (__predict_true(unlock)) {
                        spc_unlock(ci);
                }



Home | Main Index | Thread Index | Old Index