From patchwork Mon Nov 24 22:38:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ola Liljedahl X-Patchwork-Id: 41444 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8210425E18 for ; Mon, 24 Nov 2014 22:40:06 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf2581772wib.6 for ; Mon, 24 Nov 2014 14:40:05 -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:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=tWJfHOioWEOq/JsOaZ/17g//F0eLpi3DS6HIlxBFWVk=; b=TAS4SXLUv9cVGT1++TgEZwNHG9E2Dt6F3rXdrrOAf3uHxG3BY2UMV3aSXqW7JHO1k3 xf5jgiXXH0zmC/aH0HStoYWU0XQhneO9qXRnJabAw4zHvgRW39tXx9gS19j4HgoBy0/i BGASz64hotXl88IgaHuToLJQh9dWhKUL9P38SPMXXXuhEa0Q+46N6lillA5xN7AVZwbW bcvck2qo2394ZVpYXVEhfk4y7M6DTE538Ha3d9hCYjTapMadpCZPyUbQG+6gOMXGqGMq 1okNTZb/3/NNsUaRn0LbupneQFNj+k+5CCmFo01hUW174T67q1AbZeUB1OURVTgMsjLT iwAw== X-Gm-Message-State: ALoCoQmAmH6RPpAEKprfFZkNw8Fg0rAxM9a53YX3VE1xj6sZRR6wwSn/UmoknqTUiHKs9DzmeKIh X-Received: by 10.112.204.71 with SMTP id kw7mr1139975lbc.13.1416868805782; Mon, 24 Nov 2014 14:40:05 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.38 with SMTP id w6ls347205laa.49.gmail; Mon, 24 Nov 2014 14:40:05 -0800 (PST) X-Received: by 10.152.115.230 with SMTP id jr6mr22982368lab.2.1416868805642; Mon, 24 Nov 2014 14:40:05 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id h4si16566844lbd.53.2014.11.24.14.40.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Nov 2014 14:40:05 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id l4so2740896lbv.11 for ; Mon, 24 Nov 2014 14:40:05 -0800 (PST) X-Received: by 10.152.6.228 with SMTP id e4mr22830320laa.71.1416868805425; Mon, 24 Nov 2014 14:40:05 -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.112.184.201 with SMTP id ew9csp348225lbc; Mon, 24 Nov 2014 14:40:04 -0800 (PST) X-Received: by 10.140.20.175 with SMTP id 44mr31547979qgj.22.1416868804145; Mon, 24 Nov 2014 14:40:04 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id q1si15968435qac.105.2014.11.24.14.40.03 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 24 Nov 2014 14:40:04 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xt2IZ-0007uB-Ma; Mon, 24 Nov 2014 22:39:59 +0000 Received: from mail-la0-f48.google.com ([209.85.215.48]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xt2Ho-0007mN-PW for lng-odp@lists.linaro.org; Mon, 24 Nov 2014 22:39:12 +0000 Received: by mail-la0-f48.google.com with SMTP id s18so8374470lam.21 for ; Mon, 24 Nov 2014 14:39:07 -0800 (PST) X-Received: by 10.152.6.166 with SMTP id c6mr22891474laa.20.1416868747084; Mon, 24 Nov 2014 14:39:07 -0800 (PST) Received: from macmini.lan (84-217-193-77.tn.glocalnet.net. [84.217.193.77]) by mx.google.com with ESMTPSA id pr9sm2952957lbc.12.2014.11.24.14.39.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 14:39:06 -0800 (PST) From: Ola Liljedahl To: lng-odp@lists.linaro.org Date: Mon, 24 Nov 2014 23:38:50 +0100 Message-Id: <1416868730-26140-10-git-send-email-ola.liljedahl@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1416868730-26140-1-git-send-email-ola.liljedahl@linaro.org> References: <1416868730-26140-1-git-send-email-ola.liljedahl@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v3 9/9] linux-generic: odp_spin_internal.h: remove odp_mem_barrier X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ola.liljedahl@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) 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 Signed-off-by: Ola Liljedahl --- Removed odp_mem_barrier() which is a compiler only barrier and basically useless and dangerous on all weakly ordered architectures. platform/linux-generic/include/odp_spin_internal.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/platform/linux-generic/include/odp_spin_internal.h b/platform/linux-generic/include/odp_spin_internal.h index b7e2071..29c524f 100644 --- a/platform/linux-generic/include/odp_spin_internal.h +++ b/platform/linux-generic/include/odp_spin_internal.h @@ -15,15 +15,6 @@ extern "C" { /** - * GCC memory barrier for ODP internal use - */ -static inline void odp_mem_barrier(void) -{ - __asm__ __volatile__ ("" : : : "memory"); -} - - -/** * Spin loop for ODP internal use */ static inline void odp_spin(void)