diff options
author | Richard Braun <rbraun@sceen.net> | 2013-03-15 00:02:56 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-03-15 00:02:56 +0100 |
commit | aff0c0bde7df889cdab2cf365e213957d849ba54 (patch) | |
tree | 02de00b0c098b61986406530ac589b1484416650 | |
parent | a1e1164f13bebb974c84060f02c6f7e327a2b27c (diff) |
kern/thread: remove the unused cpu thread member
-rw-r--r-- | kern/thread.c | 3 | ||||
-rw-r--r-- | kern/thread.h | 1 |
2 files changed, 0 insertions, 4 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 diff --git a/kern/thread.h b/kern/thread.h index 9659f405..6dea753d 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -115,7 +115,6 @@ struct thread { short state; unsigned short pinned; unsigned short preempt; - unsigned int cpu; unsigned long on_rq; /* Common scheduling properties */ |