From owner-cvs-all@FreeBSD.ORG Tue Jul 27 16:41:04 2004 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 39B7416A4D4; Tue, 27 Jul 2004 16:41:04 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FC2043D1F; Tue, 27 Jul 2004 16:41:04 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6RGf1nY042830; Tue, 27 Jul 2004 16:41:01 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6RGf1vl042829; Tue, 27 Jul 2004 16:41:01 GMT (envelope-from rwatson) Message-Id: <200407271641.i6RGf1vl042829@repoman.freebsd.org> From: Robert Watson Date: Tue, 27 Jul 2004 16:41:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/alpha/include critical.h src/sys/amd64/include critical.h src/sys/arm/include critical.h src/sys/i386/include critical.h src/sys/ia64/include critical.h src/sys/kern kern_switch.c src/sys/powerpc/include critical.h ... 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: Tue, 27 Jul 2004 16:41:04 -0000 rwatson 2004-07-27 16:41:01 UTC FreeBSD src repository Modified files: sys/alpha/include critical.h sys/amd64/include critical.h sys/arm/include critical.h sys/i386/include critical.h sys/ia64/include critical.h sys/kern kern_switch.c sys/powerpc/include critical.h sys/sparc64/include critical.h Log: Pass a thread argument into cpu_critical_{enter,exit}() rather than dereference curthread. It is called only from critical_{enter,exit}(), which already dereferences curthread. This doesn't seem to affect SMP performance in my benchmarks, but improves MySQL transaction throughput by about 1% on UP on my Xeon. Head nodding: jhb, bmilekic Revision Changes Path 1.5 +4 -8 src/sys/alpha/include/critical.h 1.8 +7 -6 src/sys/amd64/include/critical.h 1.2 +4 -4 src/sys/arm/include/critical.h 1.8 +6 -6 src/sys/i386/include/critical.h 1.5 +4 -8 src/sys/ia64/include/critical.h 1.74 +2 -2 src/sys/kern/kern_switch.c 1.6 +4 -6 src/sys/powerpc/include/critical.h 1.5 +4 -8 src/sys/sparc64/include/critical.h