oops, over optimised and broke non-SMP builds
This commit is contained in:
parent
dfe03c8c44
commit
5f66cfca51
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173035
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user