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/21821c72e87d
branches: trunk
changeset: 461616:21821c72e87d
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 0f4a3e9bdbdd -r 21821c72e87d 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