From patchwork Sat Aug 20 07:45:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 74356 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp659288qga; Sat, 20 Aug 2016 00:47:12 -0700 (PDT) X-Received: by 10.237.59.212 with SMTP id s20mr12777649qte.126.1471679231568; Sat, 20 Aug 2016 00:47:11 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c49si5323629qtb.50.2016.08.20.00.47.11; Sat, 20 Aug 2016 00:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 1783260819; Sat, 20 Aug 2016 07:47:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DC3C7617BE; Sat, 20 Aug 2016 07:46:20 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 513BE6170E; Sat, 20 Aug 2016 07:46:16 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by lists.linaro.org (Postfix) with ESMTPS id 371E761705 for ; Sat, 20 Aug 2016 07:46:15 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id f93so46699266lfi.2 for ; Sat, 20 Aug 2016 00:46:15 -0700 (PDT) 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:in-reply-to :references; bh=S5AhzzErfePFeRWpkKz4qqMm+o7tt0USikxViRGFefQ=; b=JCBCzdd7kPxTaa3aN2ZqoRIXLcqKttsPLm700rtzcRfpM3rcMV9eJiYB4eQ/D2nRZ/ Drk1gzrXJfmXT1owHOBT0qGQjjPZIsCdPqJZhGV75GkR6wCTOuAT1mLoTQv5oiWwdta/ biSbJQok2uOrDVBJcNq0s8q4vpfOHnAAI3IjktgxCiRL7W2TAhS+2oXH8RkaSjm3DYK1 OEZde+B0CewXezF5SrP1lCJSSLdmmonBQZqffXrM5wDtep8swhWHusqbbAkdhiw3WCW5 QGLBkZ10BZsH13o3ie6Xn9LarsleIsQcUv0FVSlLW0wNm9AsgHXcToVG97iHUR4dNonD uCCQ== X-Gm-Message-State: AEkoous9+Tsxn/Wdux9nDoM58ky+NKM4/Ec8rpRlnCIFr6FZICO6m2tWrCRF/i25IGyuWyifbf4= X-Received: by 10.46.5.23 with SMTP id 23mr3116335ljf.64.1471679173952; Sat, 20 Aug 2016 00:46:13 -0700 (PDT) Received: from localhost.localdomain (c-83-233-76-66.cust.bredband2.com. [83.233.76.66]) by smtp.gmail.com with ESMTPSA id 17sm1854092ljj.49.2016.08.20.00.46.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 20 Aug 2016 00:46:13 -0700 (PDT) From: Christophe Milard To: bill.fischofer@linaro.org, mike.holmes@linaro.org, lng-odp@lists.linaro.org Date: Sat, 20 Aug 2016 09:45:51 +0200 Message-Id: <1471679163-17240-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471679163-17240-1-git-send-email-christophe.milard@linaro.org> References: <1471679163-17240-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv3 01/13] linux-gen: cosmetic changes on barrier X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" To please check-patch before the copy to the drv interface. Signed-off-by: Christophe Milard --- include/odp/api/spec/barrier.h | 2 -- platform/linux-generic/include/odp/api/plat/barrier_types.h | 1 - platform/linux-generic/odp_barrier.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) -- 2.7.4 diff --git a/include/odp/api/spec/barrier.h b/include/odp/api/spec/barrier.h index 678d39a..6de683c 100644 --- a/include/odp/api/spec/barrier.h +++ b/include/odp/api/spec/barrier.h @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-3-Clause */ - /** * @file * @@ -44,7 +43,6 @@ extern "C" { */ void odp_barrier_init(odp_barrier_t *barr, int count); - /** * Synchronize thread execution on barrier. * Wait for all threads to arrive at the barrier until they are let loose again. diff --git a/platform/linux-generic/include/odp/api/plat/barrier_types.h b/platform/linux-generic/include/odp/api/plat/barrier_types.h index 440275e..00b383c 100644 --- a/platform/linux-generic/include/odp/api/plat/barrier_types.h +++ b/platform/linux-generic/include/odp/api/plat/barrier_types.h @@ -4,7 +4,6 @@ * SPDX-License-Identifier: BSD-3-Clause */ - /** * @file * diff --git a/platform/linux-generic/odp_barrier.c b/platform/linux-generic/odp_barrier.c index ef10f29..a2c6267 100644 --- a/platform/linux-generic/odp_barrier.c +++ b/platform/linux-generic/odp_barrier.c @@ -37,7 +37,7 @@ void odp_barrier_wait(odp_barrier_t *barrier) count = odp_atomic_fetch_inc_u32(&barrier->bar); wasless = count < barrier->count; - if (count == 2*barrier->count-1) { + if (count == 2 * barrier->count - 1) { /* Wrap around *atomically* */ odp_atomic_sub_u32(&barrier->bar, 2 * barrier->count); } else {