From patchwork Thu Feb 13 12:38:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 24587 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f200.google.com (mail-yk0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 827AD202E2 for ; Thu, 13 Feb 2014 12:39:35 +0000 (UTC) Received: by mail-yk0-f200.google.com with SMTP id q200sf35165436ykb.3 for ; Thu, 13 Feb 2014 04:39:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=DqU9s6lbFemYLDIdGcGfOBsB7x4QPKs0Ld8ne5IKd9Y=; b=Eec0N1nVXLq0o+bsreDFi6wY65c2E4cSdfENMj1lQ4pl2ue//68MRXrbn0uVm3oV// GI0VH3Ckv/B2MyNDL3mvZZTPAlVBLGYXs9BOkl4fYNJYZoNRMXFR2gSRYupn9es2npEW nX9wQDhBS82DrbIdz5dsCUQ7rMnAo5aRMqKDkf7OBERdr0C0deyNifuadkuCwOfh8gtL u2e8SeK3iskFaStGIxHfPOyCEc0UqHVE2bBCA+7+qkZ/J3vk+5CsT5o9vZraD6EvpNIC rAD34byrMXEB3OP7APGj2lQl7FCB8ln3V5h4IcoBxhRb/GPul5qDIG/1T/8LqMlbEIKs HqlA== X-Gm-Message-State: ALoCoQnYHc2GWnTQegbJ+XWO3JTGYzk+mVa4daCHLO7/8WYXJKXMbEHXQo3aHk5VvpCcdwMGdXMl X-Received: by 10.224.75.9 with SMTP id w9mr424549qaj.2.1392295174562; Thu, 13 Feb 2014 04:39:34 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.103.118 with SMTP id x109ls3401451qge.43.gmail; Thu, 13 Feb 2014 04:39:34 -0800 (PST) X-Received: by 10.52.117.115 with SMTP id kd19mr681270vdb.15.1392295174380; Thu, 13 Feb 2014 04:39:34 -0800 (PST) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id p9si618592vdv.5.2014.02.13.04.39.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 04:39:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id jw12so1235163veb.4 for ; Thu, 13 Feb 2014 04:39:34 -0800 (PST) X-Received: by 10.58.123.70 with SMTP id ly6mr840519veb.26.1392295174298; Thu, 13 Feb 2014 04:39:34 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp22538vcz; Thu, 13 Feb 2014 04:39:33 -0800 (PST) X-Received: by 10.220.145.5 with SMTP id b5mr837187vcv.9.1392295173849; Thu, 13 Feb 2014 04:39:33 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id y3si601574vdo.110.2014.02.13.04.39.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 13 Feb 2014 04:39:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDvYk-0002AH-8x; Thu, 13 Feb 2014 12:38:30 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WDvYi-000275-0b for xen-devel@lists.xen.org; Thu, 13 Feb 2014 12:38:28 +0000 Received: from [85.158.143.35:35712] by server-2.bemta-4.messagelabs.com id EF/12-10891-3CCBCF25; Thu, 13 Feb 2014 12:38:27 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1392295102!5414705!4 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19580 invoked from network); 13 Feb 2014 12:38:26 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-9.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 13 Feb 2014 12:38:26 -0000 X-IronPort-AV: E=Sophos;i="4.95,838,1384300800"; d="scan'208";a="100426778" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 13 Feb 2014 12:38:09 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.2.342.4; Thu, 13 Feb 2014 07:38:09 -0500 Received: from drall.uk.xensource.com ([10.80.16.71] helo=drall.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WDvYP-0003Bw-4w; Thu, 13 Feb 2014 12:38:09 +0000 From: Ian Campbell To: Date: Thu, 13 Feb 2014 12:38:05 +0000 Message-ID: <1392295088-24219-5-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1392295040.31985.7.camel@kazak.uk.xensource.com> References: <1392295040.31985.7.camel@kazak.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH for-4.5 v2 5/8] xen: arm: Use dmb for smp barriers X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: The full power of dsb is not required in this context. Also change wmb() to be dsb() directly instead of indirectly via mb(), for clarity. Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini Acked-by: Tim Deegan --- xen/include/asm-arm/system.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/include/asm-arm/system.h b/xen/include/asm-arm/system.h index e003624..89c61ef 100644 --- a/xen/include/asm-arm/system.h +++ b/xen/include/asm-arm/system.h @@ -18,11 +18,11 @@ #define mb() dsb() #define rmb() dsb() -#define wmb() mb() +#define wmb() dsb() -#define smp_mb() mb() -#define smp_rmb() rmb() -#define smp_wmb() wmb() +#define smp_mb() dmb() +#define smp_rmb() dmb() +#define smp_wmb() dmb() #define xchg(ptr,x) \ ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))