Received: from eggs.gnu.org ([2001:4830:134:3::10]:33636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axEjL-0006Ru-0n for qemu-devel@nongnu.org; Mon, 02 May 2016 10:21:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axEj9-0008Rt-Ep for qemu-devel@nongnu.org; Mon, 02 May 2016 10:21:41 -0400 Received: from mail-io0-x229.google.com ([2607:f8b0:4001:c06::229]:36854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axEj8-0008Mo-6v for qemu-devel@nongnu.org; Mon, 02 May 2016 10:21:35 -0400 Received: by mail-io0-x229.google.com with SMTP id u185so197422094iod.3 for ; Mon, 02 May 2016 07:21:19 -0700 (PDT) From: Pranith Kumar Date: Mon, 2 May 2016 10:20:52 -0400 Message-Id: <1462198852-28694-1-git-send-email-bobby.prani@gmail.com> Subject: [Qemu-devel] [PATCH] docs/atomics.txt: Update pointer to linux macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: pbonzini@redhat.com, marcandre.lureau@gmail.com, "open list:All patches CC here" Cc: alex.bennee@linaro.org Add a missing end brace and update doc to point to the latest access macro. ACCESS_ONCE() is deprecated. Signed-off-by: Pranith Kumar --- docs/atomics.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/atomics.txt b/docs/atomics.txt index ef285e3..bba771e 100644 --- a/docs/atomics.txt +++ b/docs/atomics.txt @@ -62,7 +62,7 @@ operations: typeof(*ptr) atomic_fetch_sub(ptr, val) typeof(*ptr) atomic_fetch_and(ptr, val) typeof(*ptr) atomic_fetch_or(ptr, val) - typeof(*ptr) atomic_xchg(ptr, val + typeof(*ptr) atomic_xchg(ptr, val) typeof(*ptr) atomic_cmpxchg(ptr, old, new) all of which return the old value of *ptr. These operations are @@ -328,7 +328,7 @@ and memory barriers, and the equivalents in QEMU: - atomic_read and atomic_set in Linux give no guarantee at all; atomic_read and atomic_set in QEMU include a compiler barrier - (similar to the ACCESS_ONCE macro in Linux). + (similar to the READ_ONCE/WRITE_ONCE macros in Linux). - most atomic read-modify-write operations in Linux return void; in QEMU, all of them return the old value of the variable. -- 2.8.1