From 5f66cfca515d7183a3fe545fae6e65b8894b8550 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Fri, 26 Oct 2007 20:32:33 +0000 Subject: [PATCH] oops, over optimised and broke non-SMP builds --- sys/kern/kern_idle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c index c875e8592a43..b68292d03a9f 100644 --- a/sys/kern/kern_idle.c +++ b/sys/kern/kern_idle.c @@ -61,11 +61,13 @@ idle_setup(void *dummy) #ifdef SMP SLIST_FOREACH(pc, &cpuhead, pc_allcpu) { #endif +#ifdef SMP error = kproc_kthread_add(sched_idletd, NULL, &p, &td, RFSTOPPED | RFHIGHPID, 0, "idled", "idle: cpu%d", pc->pc_cpuid); -#ifdef SMP pc->pc_idlethread = td; #else + error = kproc_kthread_add(sched_idletd, NULL, &p, &td, + RFSTOPPED | RFHIGHPID, 0, "idled", "idle"); PCPU_SET(idlethread, td); #endif p = td->td_proc;