summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-03-15 00:02:56 +0100
committerRichard Braun <rbraun@sceen.net>2013-03-15 00:02:56 +0100
commitaff0c0bde7df889cdab2cf365e213957d849ba54 (patch)
tree02de00b0c098b61986406530ac589b1484416650 /kern/thread.c
parenta1e1164f13bebb974c84060f02c6f7e327a2b27c (diff)
kern/thread: remove the unused cpu thread member
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c3
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