Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Yield the main thread only after exiting critical s...
details: https://anonhg.NetBSD.org/src/rev/b4b90e4d13c9
branches: trunk
changeset: 334033:b4b90e4d13c9
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Thu Nov 27 14:38:09 2014 +0000
description:
Yield the main thread only after exiting critical section.
diffstat:
sys/kern/init_main.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r dc5fe5871150 -r b4b90e4d13c9 sys/kern/init_main.c
--- a/sys/kern/init_main.c Thu Nov 27 14:22:09 2014 +0000
+++ b/sys/kern/init_main.c Thu Nov 27 14:38:09 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_main.c,v 1.460 2014/10/04 11:15:44 riastradh Exp $ */
+/* $NetBSD: init_main.c,v 1.461 2014/11/27 14:38:09 uebayasi Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.460 2014/10/04 11:15:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.461 2014/11/27 14:38:09 uebayasi Exp $");
#include "opt_ddb.h"
#include "opt_ipsec.h"
@@ -528,6 +528,9 @@
/* Now timer is working. Enable preemption. */
kpreempt_enable();
+ /* Get the threads going and into any sleeps before continuing. */
+ yield();
+
/* Enable deferred processing of RNG samples */
rnd_init_softint();
@@ -803,9 +806,6 @@
* devices that want interrupts enabled.
*/
config_create_interruptthreads();
-
- /* Get the threads going and into any sleeps before continuing. */
- yield();
}
static void
Home |
Main Index |
Thread Index |
Old Index