From owner-cvs-all@FreeBSD.ORG Thu Nov 11 22:42:26 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 0B20D16A4CE; Thu, 11 Nov 2004 22:42:26 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCC2F43D39; Thu, 11 Nov 2004 22:42:25 +0000 (GMT) (envelope-from jhb@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 iABMgPGR047574; Thu, 11 Nov 2004 22:42:25 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iABMgPMg047573; Thu, 11 Nov 2004 22:42:25 GMT (envelope-from jhb) Message-Id: <200411112242.iABMgPMg047573@repoman.freebsd.org> From: John Baldwin Date: Thu, 11 Nov 2004 22:42:25 +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/i386/include atomic.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: Thu, 11 Nov 2004 22:42:26 -0000 jhb 2004-11-11 22:42:25 UTC FreeBSD src repository Modified files: sys/i386/include atomic.h Log: - Place the gcc memory barrier hint in the right place in the 80386 version of atomic_store_rel(). - Use the 80386 versions of atomic_load_acq() and atomic_store_rel() that do not use serializing instructions on all UP kernels since a UP machine does need to synchronize with other CPUs. This trims lots of cycles from spin locks on UP kernels among other things. Benchmarked by: rwatson Revision Changes Path 1.33 +9 -8 src/sys/i386/include/atomic.h