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/bd56631199b5
branches:  trunk
changeset: 465541:bd56631199b5
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 34068678d271 -r bd56631199b5 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