diff options
author | julian <julian@FreeBSD.org> | 2007-10-26 20:32:33 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-10-26 20:32:33 +0000 |
commit | c21b38f4091388ddb604d75698f52f632352d3d5 (patch) | |
tree | 49e4b3952c5e3f846378e168f1ae7c277e5d1f62 | |
parent | 762411fab64750a2c8eb2b15401aeaf33940df5e (diff) | |
download | FreeBSD-src-c21b38f4091388ddb604d75698f52f632352d3d5.zip FreeBSD-src-c21b38f4091388ddb604d75698f52f632352d3d5.tar.gz |
oops, over optimised and broke non-SMP builds
-rw-r--r-- | sys/kern/kern_idle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c index c875e85..b68292d 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; |