summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kern/thread.c3
-rw-r--r--kern/thread.h1
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 */