From owner-cvs-all@FreeBSD.ORG Mon Jun 4 23:56:08 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5E4116A473; Mon, 4 Jun 2007 23:56:08 +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 D670313C480; Mon, 4 Jun 2007 23:56:08 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l54Nu85v075829; Mon, 4 Jun 2007 23:56:08 GMT (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l54Nu8bn075828; Mon, 4 Jun 2007 23:56:08 GMT (envelope-from jeff) Message-Id: <200706042356.l54Nu8bn075828@repoman.freebsd.org> From: Jeff Roberson Date: Mon, 4 Jun 2007 23:56:08 +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/amd64/amd64 mp_machdep.c src/sys/i386/i386 mp_machdep.c src/sys/ia64/ia64 mp_machdep.c src/sys/sparc64/sparc64 mp_machdep.c src/sys/sun4v/sun4v mp_machdep.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 04 Jun 2007 23:56:09 -0000 jeff 2007-06-04 23:56:08 UTC FreeBSD src repository Modified files: sys/amd64/amd64 mp_machdep.c sys/i386/i386 mp_machdep.c sys/ia64/ia64 mp_machdep.c sys/sparc64/sparc64 mp_machdep.c sys/sun4v/sun4v mp_machdep.c Log: Commit 10/14 of sched_lock decomposition. - Use sched_throw() rather than replicating the same cpu_throw() code for each architecture. This also allows the scheduler to use any locking it may want to. - Use the thread_lock() rather than sched_lock when preempting. - The scheduler lock is not required to synchronize release_aps. Tested by: kris, current@ Tested on: i386, amd64, ULE, 4BSD, libthr, libkse, PREEMPTION, etc. Discussed with: kris, attilio, kmacy, jhb, julian, bde (small parts each) Revision Changes Path 1.286 +4 -23 src/sys/amd64/amd64/mp_machdep.c 1.280 +5 -21 src/sys/i386/i386/mp_machdep.c 1.63 +1 -16 src/sys/ia64/ia64/mp_machdep.c 1.35 +2 -6 src/sys/sparc64/sparc64/mp_machdep.c 1.7 +4 -10 src/sys/sun4v/sun4v/mp_machdep.c