]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Add three new functions to support circular run queues.
authorJeff Roberson <jeff@FreeBSD.org>
Thu, 4 Jan 2007 08:39:58 +0000 (08:39 +0000)
committerJeff Roberson <jeff@FreeBSD.org>
Thu, 4 Jan 2007 08:39:58 +0000 (08:39 +0000)
commit3fed7d239a695fa3bf77f29c796a4be7fc16c199
treeca123567dd04417e0c767dc3d0499390b56956b5
parent783af89c54965ed3209c0bcebda76a30e10c5fe5
 - Add three new functions to support circular run queues.
 - runq_add_pri allows the caller to position the thread at any rqindex
   regardless of priority.
 - runq_choose_from() chooses the lowest priority thread starting from a given
   index.  The index is updated with the rqindex of the chosen thread.  This
   routine is used to pick the lowest priority relative to a given index.
 - runq_remove_idx() updates the index if the run queue that held the removed
   thread is now empty.
sys/kern/kern_switch.c
sys/sys/runq.h