summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kse.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-09-01 02:11:28 +0000
committerjulian <julian@FreeBSD.org>2004-09-01 02:11:28 +0000
commite9d9514975605045da565470477ceafa13f6174b (patch)
tree16691683be7649ae0915de2c1fa1995b931091a3 /sys/kern/kern_kse.c
parenteeddbfb0fa1e4bef7bff6ff83926b674f7d9e29c (diff)
downloadFreeBSD-src-e9d9514975605045da565470477ceafa13f6174b.zip
FreeBSD-src-e9d9514975605045da565470477ceafa13f6174b.tar.gz
Give setrunqueue() and sched_add() more of a clue as to
where they are coming from and what is expected from them. MFC after: 2 days
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r--sys/kern/kern_kse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 5636df5..7eca37a 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -751,7 +751,7 @@ kse_create(struct thread *td, struct kse_create_args *uap)
*/
if (newtd != td) {
mtx_lock_spin(&sched_lock);
- setrunqueue(newtd);
+ setrunqueue(newtd, SRQ_BORING);
mtx_unlock_spin(&sched_lock);
}
return (0);
@@ -1113,7 +1113,7 @@ thread_switchout(struct thread *td)
td->td_upcall = NULL;
td->td_pflags &= ~TDP_CAN_UNBIND;
td2 = thread_schedule_upcall(td, ku);
- setrunqueue(td2);
+ setrunqueue(td2, SRQ_YIELDING);
}
}
OpenPOWER on IntegriCloud