Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Init kern_runq and kern_synch before booting second...



details:   https://anonhg.NetBSD.org/src/rev/3cabd1da0c60
branches:  trunk
changeset: 846793:3cabd1da0c60
user:      ad <ad%NetBSD.org@localhost>
date:      Sun Dec 01 17:08:31 2019 +0000

description:
Init kern_runq and kern_synch before booting secondary CPUs.

diffstat:

 sys/kern/init_main.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r 14bd1b3e6c17 -r 3cabd1da0c60 sys/kern/init_main.c
--- a/sys/kern/init_main.c      Sun Dec 01 17:06:00 2019 +0000
+++ b/sys/kern/init_main.c      Sun Dec 01 17:08:31 2019 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: init_main.c,v 1.506 2019/10/03 22:29:17 kamil Exp $    */
+/*     $NetBSD: init_main.c,v 1.507 2019/12/01 17:08:31 ad Exp $       */
 
 /*-
- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
+ * Copyright (c) 2008, 2009, 2019 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.506 2019/10/03 22:29:17 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.507 2019/12/01 17:08:31 ad Exp $");
 
 #include "opt_ddb.h"
 #include "opt_inet.h"
@@ -799,6 +799,10 @@
        curcpu()->ci_schedstate.spc_flags |= SPCF_RUNNING;
        splx(s);
 
+       /* Setup the runqueues and scheduler. */
+       runq_init();
+       synch_init();
+
        /* Boot the secondary processors. */
        for (CPU_INFO_FOREACH(cii, ci)) {
                uvm_cpu_attach(ci);
@@ -808,10 +812,6 @@
        cpu_boot_secondary_processors();
 #endif
 
-       /* Setup the runqueues and scheduler. */
-       runq_init();
-       synch_init();
-
        /*
         * Bus scans can make it appear as if the system has paused, so
         * twiddle constantly while config_interrupts() jobs are running.



Home | Main Index | Thread Index | Old Index