From owner-cvs-all@FreeBSD.ORG Sat Jul 9 12:38:53 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 ED10E16A41C; Sat, 9 Jul 2005 12:38:53 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0E7043D48; Sat, 9 Jul 2005 12:38:53 +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 j69Ccrr3053645; Sat, 9 Jul 2005 12:38:53 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j69CcrsC053644; Sat, 9 Jul 2005 12:38:53 GMT (envelope-from jhb) Message-Id: <200507091238.j69CcrsC053644@repoman.freebsd.org> From: John Baldwin Date: Sat, 9 Jul 2005 12:38:53 +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/alpha/include atomic.h src/sys/amd64/include atomic.h src/sys/i386/include atomic.h 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: Sat, 09 Jul 2005 12:38:54 -0000 jhb 2005-07-09 12:38:53 UTC FreeBSD src repository Modified files: sys/alpha/include atomic.h sys/amd64/include atomic.h sys/i386/include atomic.h Log: Some cleanups and tweaks to some of the atomic.h files in preparation for further changes and fixes in the future: - Use aliases via macros rather than duplicated inlines wherever possible. - Move all the aliases to the bottom of these files and the inline functions to the top. - Add various comments. - On alpha, drop atomic_{load_acq,store_rel}_{8,char,16,short}(). - On i386 and amd64, don't duplicate the extern declarations for functions in the two non-inline cases (KLD_MODULE and compiler doesn't do inlines), instead, consolidate those two cases. - Some whitespace fixes. Approved by: re (scottl) Revision Changes Path 1.21 +99 -91 src/sys/alpha/include/atomic.h 1.34 +63 -79 src/sys/amd64/include/atomic.h 1.38 +72 -83 src/sys/i386/include/atomic.h