cvs commit: src/sys/sys runq.h src/sys/kern kern_switch.c

Jeff Roberson jeff at FreeBSD.org
Thu Jan 4 00:39:58 PST 2007


jeff        2007-01-04 08:39:58 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              runq.h 
    sys/kern             kern_switch.c 
  Log:
   - 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.
  
  Revision  Changes    Path
  1.126     +93 -4     src/sys/kern/kern_switch.c
  1.8       +4 -1      src/sys/sys/runq.h


More information about the cvs-src mailing list