From patchwork Mon Dec 29 14:58:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 42643 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 07A4A246A4 for ; Mon, 29 Dec 2014 14:59:23 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id k14sf592213wgh.10 for ; Mon, 29 Dec 2014 06:59:22 -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=2HkbTocOLmtTcd5AOS6RsvnfkTBsbM4BOKS0r+PjwiI=; b=hGI/pX+JwFLBSfnTAjVcFYS+mcpahE05OPKRBGQ9rU2FpTlYxqIOpPgebVjMInc6Y9 WMaNVPvyrgoUnijQbi4XCXGapiiJ0RN9xXzCEm6O97CpQiGpkcm6N21cQrJE/EjikN9s dy2dOwqbPrO/FkmOwufUyucTmWdfamlAss3CJXOY4VqEGnd+e6Jbjl+cBX4RPQqB9+St B3+EA30YWHgUs4vWx2Ujs9itNONent4DAO6zDcLQeEFjZck7GxQgRfP/PBLl4qigeu6f kKSFc2ptdXhNT1O6zYj0dGuP+gQbyqkIK+Q2NHpDCknmBwkJ2+ay8H/ZPIESaUP6o+5l gifA== X-Gm-Message-State: ALoCoQnhzzFWn00pM3VpKiwOcs5CcpP74yUocTxTU65TXnZHrPXfN+ZvHAbgo8l+n/pWn2T2EqNB X-Received: by 10.112.89.36 with SMTP id bl4mr4058277lbb.1.1419865162233; Mon, 29 Dec 2014 06:59:22 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.201 with SMTP id x9ls1850046lae.89.gmail; Mon, 29 Dec 2014 06:59:21 -0800 (PST) X-Received: by 10.152.1.2 with SMTP id 2mr57136917lai.89.1419865161862; Mon, 29 Dec 2014 06:59:21 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id i7si39727944lbs.116.2014.12.29.06.59.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Dec 2014 06:59:21 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id hz20so11042863lab.20 for ; Mon, 29 Dec 2014 06:59:21 -0800 (PST) X-Received: by 10.152.87.12 with SMTP id t12mr57313674laz.31.1419865161781; Mon, 29 Dec 2014 06:59:21 -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.142.69 with SMTP id ru5csp2805914lbb; Mon, 29 Dec 2014 06:59:20 -0800 (PST) X-Received: by 10.224.95.7 with SMTP id b7mr92041147qan.70.1419865159973; Mon, 29 Dec 2014 06:59:19 -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 62si3821167qgf.42.2014.12.29.06.59.18 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 29 Dec 2014 06:59:19 -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 1Y5bmu-0007Ai-LU; Mon, 29 Dec 2014 14:59:16 +0000 Received: from mail-la0-f42.google.com ([209.85.215.42]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y5bmk-00078K-LI for lng-odp@lists.linaro.org; Mon, 29 Dec 2014 14:59:06 +0000 Received: by mail-la0-f42.google.com with SMTP id gd6so11512888lab.29 for ; Mon, 29 Dec 2014 06:59:01 -0800 (PST) X-Received: by 10.152.23.38 with SMTP id j6mr57370462laf.81.1419865141078; Mon, 29 Dec 2014 06:59:01 -0800 (PST) Received: from localhost.localdomain ([188.92.105.210]) by mx.google.com with ESMTPSA id f5sm7027533laa.12.2014.12.29.06.58.59 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Dec 2014 06:59:00 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Mon, 29 Dec 2014 17:58:51 +0300 Message-Id: <1419865132-27981-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1419865132-27981-1-git-send-email-maxim.uvarov@linaro.org> References: <1419865132-27981-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 1/2] linux-generic: remove octeon specific code from odp_atomic_fetch_inc_u32 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: maxim.uvarov@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.215.47 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 Gcc already provides valid code for odp_atomic_fetch_inc_u32, no need for inline assembly. Signed-off-by: Maxim Uvarov --- platform/linux-generic/include/api/odp_atomic.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/platform/linux-generic/include/api/odp_atomic.h b/platform/linux-generic/include/api/odp_atomic.h index 4a5b0b2..e45a751 100644 --- a/platform/linux-generic/include/api/odp_atomic.h +++ b/platform/linux-generic/include/api/odp_atomic.h @@ -156,15 +156,7 @@ static inline void odp_atomic_sub_u32(odp_atomic_u32_t *atom, static inline uint32_t odp_atomic_fetch_inc_u32(odp_atomic_u32_t *atom) { -#if defined __OCTEON__ - uint32_t ret; - __asm__ __volatile__ ("syncws"); - __asm__ __volatile__ ("lai %0,(%2)" : "=r" (ret), "+m" (atom) : - "r" (atom)); - return ret; -#else return __atomic_fetch_add(&atom->v, 1, __ATOMIC_RELAXED); -#endif } /**