Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2007 08:39:58 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys runq.h src/sys/kern kern_switch.c
Message-ID:  <200701040839.l048dwaj016232@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701040839.l048dwaj016232>