From owner-cvs-src@FreeBSD.ORG Thu Jan 4 08:39:58 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BEA5516A403; Thu, 4 Jan 2007 08:39:58 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id B0A5313C459; Thu, 4 Jan 2007 08:39:58 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l048dwJP016233; Thu, 4 Jan 2007 08:39:58 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l048dwaj016232; Thu, 4 Jan 2007 08:39:58 GMT (envelope-from jeff) Message-Id: <200701040839.l048dwaj016232@repoman.freebsd.org> From: Jeff Roberson Date: Thu, 4 Jan 2007 08:39:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys runq.h src/sys/kern kern_switch.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2007 08:39:58 -0000 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