diff options
author | jeff <jeff@FreeBSD.org> | 2004-12-14 10:53:55 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2004-12-14 10:53:55 +0000 |
commit | c94fadce10c4a45d72c0998a27fba1edfffd16a0 (patch) | |
tree | 8217407fde0af6996b1416dfda9a7637def0a643 /sys/kern/kern_switch.c | |
parent | 422a07b8e1df1d5ade35b56f0fd3eaec2c425131 (diff) | |
download | FreeBSD-src-c94fadce10c4a45d72c0998a27fba1edfffd16a0.zip FreeBSD-src-c94fadce10c4a45d72c0998a27fba1edfffd16a0.tar.gz |
- Garbage collect several unused members of struct kse and struce ksegrp.
As best as I can tell, some of these were never used.
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 4f1c7ee..3177f72 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -159,7 +159,6 @@ retry: threadqueue, td_runq); } TAILQ_REMOVE(&kg->kg_runq, td, td_runq); - kg->kg_runnable--; } CTR2(KTR_RUNQ, "choosethread: td=%p pri=%d", td, td->td_priority); @@ -254,7 +253,6 @@ remrunqueue(struct thread *td) } td3 = TAILQ_PREV(td, threadqueue, td_runq); TAILQ_REMOVE(&kg->kg_runq, td, td_runq); - kg->kg_runnable--; if (ke->ke_state == KES_ONRUNQ) { /* * This thread has been assigned to the system run queue. @@ -310,7 +308,6 @@ adjustrunqueue( struct thread *td, int newpri) sched_rem(td); } TAILQ_REMOVE(&kg->kg_runq, td, td_runq); - kg->kg_runnable--; TD_SET_CAN_RUN(td); td->td_priority = newpri; setrunqueue(td, SRQ_BORING); @@ -514,14 +511,12 @@ setrunqueue(struct thread *td, int flags) */ TAILQ_FOREACH(td2, &kg->kg_runq, td_runq) { if (td2->td_priority > td->td_priority) { - kg->kg_runnable++; TAILQ_INSERT_BEFORE(td2, td, td_runq); break; } } if (td2 == NULL) { /* We ran off the end of the TAILQ or it was empty. */ - kg->kg_runnable++; TAILQ_INSERT_TAIL(&kg->kg_runq, td, td_runq); } @@ -945,7 +940,6 @@ sched_newthread(struct thread *td) bzero(ke, sizeof(*ke)); td->td_sched = ke; ke->ke_thread = td; - ke->ke_oncpu = NOCPU; ke->ke_state = KES_THREAD; } |