summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorblambert <blambert@openbsd.org>2009-08-11 18:43:33 +0000
committerblambert <blambert@openbsd.org>2009-08-11 18:43:33 +0000
commit4942c5f04e763da30372d81ddbbf2077f9afe7a0 (patch)
treec07651486365fa625156b03830c4b5140e1c2c3c /sys/kern/init_main.c
parentSwitch tmux to use imsg. This is the last major change to make the (diff)
downloadwireguard-openbsd-4942c5f04e763da30372d81ddbbf2077f9afe7a0.tar.xz
wireguard-openbsd-4942c5f04e763da30372d81ddbbf2077f9afe7a0.zip
uvm_scheduler() sounds important, but ``while(1) tsleep()'' is kinda lame
inline the loop in the one place it exists, and remove it from uvm adjust a comment mentioning it accordingly originally inspired by a diff fixing a comment from oga@ ok art@ beck@ miod@ oga@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 69f510c89f9..2e0f06f12aa 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.161 2009/08/09 12:47:23 dlg Exp $ */
+/* $OpenBSD: init_main.c,v 1.162 2009/08/11 18:43:33 blambert Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -541,8 +541,11 @@ main(void *framep)
start_init_exec = 1;
wakeup((void *)&start_init_exec);
- /* The scheduler is an infinite loop. */
- uvm_scheduler();
+ /*
+ * proc0: nothing to do, back to sleep
+ */
+ while (1)
+ tsleep(&proc0, PVM, "scheduler", 0);
/* NOTREACHED */
}