diff options
Diffstat (limited to 'kern/thread.c')
-rw-r--r-- | kern/thread.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kern/thread.c b/kern/thread.c index 00c3dc64..a313aa48 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -1241,8 +1241,6 @@ thread_init_sched(struct thread *thread, unsigned short priority) /* * This function initializes most thread members. - * - * It leaves the cpu member uninitialized. */ static void thread_init(struct thread *thread, void *stack, const struct thread_attr *attr, @@ -1398,7 +1396,6 @@ thread_setup_idler(struct thread_runq *runq) thread_init(idler, stack, &attr, thread_idler, NULL); idler->state = THREAD_RUNNING; - idler->cpu = thread_runq_id(runq); /* * The initial preemption counter should never be less than 2, otherwise |