From owner-cvs-all@FreeBSD.ORG Fri Dec 26 09:07:30 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE5BD16A4CE; Fri, 26 Dec 2003 09:07:30 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D9EB43D2D; Fri, 26 Dec 2003 09:07:30 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBQH7T0B093693; Fri, 26 Dec 2003 09:07:29 -0800 (PST) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBQH7Ta7093692; Fri, 26 Dec 2003 09:07:29 -0800 (PST) (envelope-from jhb) Message-Id: <200312261707.hBQH7Ta7093692@repoman.freebsd.org> From: John Baldwin Date: Fri, 26 Dec 2003 09:07:29 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern sched_4bsd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2003 17:07:30 -0000 jhb 2003/12/26 09:07:29 PST FreeBSD src repository Modified files: sys/kern sched_4bsd.c Log: Create a separate kthread that executes sched_cpu() once a second. Because sched_cpu() locks an sx lock (allproc_lock) which can sleep if it fails to acquire the lock, it is not safe to execute this in a callout handler from softclock(). Revision Changes Path 1.29 +21 -6 src/sys/kern/sched_4bsd.c