diff options
author | Richard Braun <rbraun@sceen.net> | 2014-01-03 23:54:28 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-01-03 23:54:28 +0100 |
commit | b5a657f59cfc9ed0d892ec6f7b9d7e7e63cdea76 (patch) | |
tree | a6bdb21031fa7661ee3e74d5209c5880849f44d9 /kern/thread.c | |
parent | b53c5990ccc688e03d120c87940c7024eaca4813 (diff) |
kern/thread: slightly improve run queue packing
Diffstat (limited to 'kern/thread.c')
-rw-r--r-- | kern/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread.c b/kern/thread.c index c0b18cde..c52be951 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -177,8 +177,8 @@ struct thread_ts_runq { */ struct thread_runq { struct spinlock lock; - struct thread *current; unsigned int nr_threads; + struct thread *current; /* Real-time related members */ struct thread_rt_runq rt_runq; @@ -333,8 +333,8 @@ static void __init thread_runq_init(struct thread_runq *runq, struct thread *booter) { spinlock_init(&runq->lock); - runq->current = booter; runq->nr_threads = 0; + runq->current = booter; thread_runq_init_rt(runq); thread_runq_init_ts(runq); runq->balancer = NULL; |