From patchwork Mon Apr 11 17:30:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 8804741 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 53DD8C0553 for ; Mon, 11 Apr 2016 17:30:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ABDC5202AE for ; Mon, 11 Apr 2016 17:30:28 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0DF0B2021A for ; Mon, 11 Apr 2016 17:30:28 +0000 (UTC) Received: from localhost ([::1]:59171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apffP-0006HU-44 for patchwork-qemu-devel@patchwork.kernel.org; Mon, 11 Apr 2016 13:30:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apffF-0006Dw-LJ for qemu-devel@nongnu.org; Mon, 11 Apr 2016 13:30:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apffC-00055q-F0 for qemu-devel@nongnu.org; Mon, 11 Apr 2016 13:30:17 -0400 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]:34540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apffC-00055e-9v for qemu-devel@nongnu.org; Mon, 11 Apr 2016 13:30:14 -0400 Received: by mail-ig0-x22d.google.com with SMTP id gy3so87312861igb.1 for ; Mon, 11 Apr 2016 10:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bYUd2a14H/Hm4GfrqrNxs9gid0j51uy0PtvABnFeZm8=; b=0m2p9NOX4owFGqoIpXe2c3Ux0JMQu2Hnx6gQpk2njkU1VMXEjdDd0Kij7gpVgWDswJ TzeHc4OQmZDhxQsMD+Chvgp9llGcrK0OwKfm8JS1OkoeyXQJG/CSgE9X9To3u/7eZf9Z 2XO/7zIZlBXgYpwM2N8j0trYrYByPOMNkp/zv+WRDTTW1EoVMRpRpwLdFXmkN3Wd2iEq flFY1QsC0agWxJpS7+snqbOQ1TVz2ACefLYiUwET1F02CiumEOMtfjuBZ8Z8ylXS9VKY kscHYdSIEenrHeb8xwihwtjUG4vv6cwpYKhVjDkJrAdu+xPSdOWmSR6vhIqCrwVZR4+n LSdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bYUd2a14H/Hm4GfrqrNxs9gid0j51uy0PtvABnFeZm8=; b=P8LsqymN1qFQh18OSUq+tdQjN9lRfqW/nXjn7DtwlYms+yG4DgkhUgCXQl+g87s+at AS4YEDu7lC92AeOvW42vOOYQjK3AQnzWbjkvaFJyRVV6sKkjNojGR8bagIaFyL7gT6bU gQRUINdX+p22XBLuaQCVdL247n/RdjI9iEC2h8kkjLlSzTCJwwNrZhROTAdSzGG1KIlJ 5xmITSCaHNqhg3y8TKiXQW79KVRikRdRsXSUyjAchCpaLP927McbaTfF2eK8hTT3Q+yr lP25jPrVSaXN228Rm3GiWxOE1VNySr13p0s/MEKiYSVPP+dzSkw3uOAcFJnLSCTW4MEV iCjQ== X-Gm-Message-State: AD7BkJJFeGdSRAJAHYwvyRZxnsfAl5KAJVckRZasB84B6hqtcv5nhdf9OKfduPW/AoH6KQ== X-Received: by 10.50.9.202 with SMTP id c10mr20272339igb.46.1460395813560; Mon, 11 Apr 2016 10:30:13 -0700 (PDT) Received: from evgadesktop.attlocal.net (108-232-152-155.lightspeed.tukrga.sbcglobal.net. [108.232.152.155]) by smtp.gmail.com with ESMTPSA id d6sm958927igx.8.2016.04.11.10.30.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Apr 2016 10:30:12 -0700 (PDT) From: Pranith Kumar To: pbonzini@redhat.com Date: Mon, 11 Apr 2016 13:30:23 -0400 Message-Id: <1460395823-1399-1-git-send-email-bobby.prani@gmail.com> X-Mailer: git-send-email 2.8.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c05::22d Subject: [Qemu-devel] [PATCH] docs/atomics.txt: Update pointer to linux macro X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a missing end brace and update doc to point to the latest access macro. ACCESS_ONE() 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.