From patchwork Fri Aug 19 17:50:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 74321 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp414073qga; Fri, 19 Aug 2016 10:07:28 -0700 (PDT) X-Received: by 10.55.21.76 with SMTP id f73mr9767610qkh.88.1471626447971; Fri, 19 Aug 2016 10:07:27 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s66si5186535qke.293.2016.08.19.10.07.27; Fri, 19 Aug 2016 10:07:27 -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 96B9C607CC; Fri, 19 Aug 2016 17:07:27 +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 7457660892; Fri, 19 Aug 2016 16:53:31 +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 103D860842; Fri, 19 Aug 2016 16:53:28 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.linaro.org (Postfix) with ESMTPS id 477816089B for ; Fri, 19 Aug 2016 16:51:41 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id g62so36917336lfe.3 for ; Fri, 19 Aug 2016 09:51:41 -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=cei+rJCECtpEYSkhURIuJPEBgJ/KVH7zZo71H+5xW1jtQhGBmuWcEfZg7MrnT3h6d5 cbSUPc6hlIPiEU/vk8q4orbAHFosrsqSEdNevrjwBy2zWyXIS9VpKOlkWTnRl00mERK5 XY4F/4hP3KdXdc8Um2v6qzPIMK2Mtx/i1t9mDT2OvCacLNRm0m7X6o6gSB8YrddirVAX KbegrB60/P/lMLPdXv4BOZsqFIumrBYCoinj978+5lHUexUJHZWni2r3QMw8uB7yvQNy jgwpBvazhaBlbk+JcW6Vb1Nb/uchJcovoSslPN5OjBHZO8puHk2zdpPmbXU5d/89/1rA YJeQ== X-Gm-Message-State: AEkoouvnIoUvo9Qj3SZqNimMESK/zRVUKmCT7Im7EMhKBixejkCuT5KuQiRBk8chY7tByfMTljE= X-Received: by 10.25.196.149 with SMTP id u143mr2099334lff.164.1471625499979; Fri, 19 Aug 2016 09:51:39 -0700 (PDT) Received: from erachmi-ericsson.ki.sw.ericsson.se (c-83-233-76-66.cust.bredband2.com. [83.233.76.66]) by smtp.gmail.com with ESMTPSA id s2sm1384627lja.35.2016.08.19.09.51.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Aug 2016 09:51:39 -0700 (PDT) From: Christophe Milard To: lng-odp@lists.linaro.org, mike.holmes@linaro.org, bill.fischofer@linaro.org Date: Fri, 19 Aug 2016 19:50:36 +0200 Message-Id: <1471629048-47972-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471629048-47972-1-git-send-email-christophe.milard@linaro.org> References: <1471629048-47972-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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 {