From owner-cvs-src@FreeBSD.ORG Fri Jan 7 16:28:32 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7C4F16A4CE; Fri, 7 Jan 2005 16:28:32 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C005143D1F; Fri, 7 Jan 2005 16:28:32 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j07GSWpU043085; Fri, 7 Jan 2005 16:28:32 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j07GSWMg043084; Fri, 7 Jan 2005 16:28:32 GMT (envelope-from jhb) Message-Id: <200501071628.j07GSWMg043084@repoman.freebsd.org> From: John Baldwin Date: Fri, 7 Jan 2005 16:28:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/vm vm_zeroidle.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 07 Jan 2005 16:28:33 -0000 jhb 2005-01-07 16:28:32 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/vm vm_zeroidle.c Log: MFC 1.32 and 1.33: - Set the priority of the page zeroing thread using sched_prio() when the thread is created rather than adjusting the priority in the main function. (kthread_create() should probably take the initial priority as an argument.) - Only yield the CPU in the !PREEMPTION case if there are any other runnable threads. Yielding when there isn't anything else better to do just wastes time in pointless context switches (albeit while the system is idle.) Revision Changes Path 1.26.2.5 +5 -15 src/sys/vm/vm_zeroidle.c