From patchwork Fri Aug 19 17:29:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 74294 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp400374qga; Fri, 19 Aug 2016 09:33:41 -0700 (PDT) X-Received: by 10.200.33.183 with SMTP id 52mr9872645qty.128.1471624421839; Fri, 19 Aug 2016 09:33:41 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id w18si3217774qtw.37.2016.08.19.09.33.35; Fri, 19 Aug 2016 09:33:41 -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 4A1EB616BB; Fri, 19 Aug 2016 16:33:35 +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 95B66607B9; Fri, 19 Aug 2016 16:33: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 87EB560A2D; Fri, 19 Aug 2016 16:32:38 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id 6262F61705 for ; Fri, 19 Aug 2016 16:30:49 +0000 (UTC) Received: by mail-lf0-f43.google.com with SMTP id l89so36596727lfi.1 for ; Fri, 19 Aug 2016 09:30:49 -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=QEwPbtCjIyTU37lq/lJwET9F4mfRtS5g8BKXzBnkGEYltNpWOfFZlCv+7CSAMw2v65 Qh5DNuYcJm7b9f8DEiiqzkNAUrslx/37/x2kyaSIPr5AnwFIhFfyDt/pc1OJCfoK2ilV cDIELsoz77TIkdlKLvOE5uO+ng6FOnI5i18GWvFkjOLAgbAQxZPzrZK5/8rODpbv2Ajm WDHtdhISw9l9xQ0z1G1Y/aM/nVIieSRxcGBFniKJdgj9+DOO33pPR86YKcf8dFfUetQM CxVD0Up9dLa1J4IybbuUKqq3Lxyee6yqx+IvAoPU1LqTvRE4toselM6xj3baoGEII7+N MdzA== X-Gm-Message-State: AEkooutR0l53TZsrRJ+yoEFwWQyYQF6jQJmhb8m7NVVlfllkWsrBCUYO8icag1UU53id5dgBqsI= X-Received: by 10.25.22.217 with SMTP id 86mr2108483lfw.117.1471624248141; Fri, 19 Aug 2016 09:30:48 -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 f4sm1363952lji.41.2016.08.19.09.30.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Aug 2016 09:30:47 -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:29:46 +0200 Message-Id: <1471627798-47281-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471627798-47281-1-git-send-email-christophe.milard@linaro.org> References: <1471627798-47281-1-git-send-email-christophe.milard@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCH 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 {