From patchwork Fri Aug 19 17:45:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Milard X-Patchwork-Id: 74309 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp407291qga; Fri, 19 Aug 2016 09:51:17 -0700 (PDT) X-Received: by 10.55.135.198 with SMTP id j189mr9796367qkd.60.1471625477806; Fri, 19 Aug 2016 09:51:17 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v19si5131912qkv.311.2016.08.19.09.51.17; Fri, 19 Aug 2016 09:51:17 -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 66278615BB; Fri, 19 Aug 2016 16:51:17 +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 A7AE660796; Fri, 19 Aug 2016 16:50:58 +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 0D2E860796; Fri, 19 Aug 2016 16:50:53 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id 60F0B60796 for ; Fri, 19 Aug 2016 16:46:41 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id b199so36960630lfe.0 for ; Fri, 19 Aug 2016 09:46: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=eMijJb/Ktptky4C9t+Mh6p1r7iykrdM+j69f/017eGhsTjXIDU2+/LsE3uQnOBqe1S GbuS0IvLVRQ8uiPNYLFMTkiiFx3tsL+BYQIeEuZn5alAHO2raHz4fCuYYa8oPaEARSeL T2QcOznKfaDGyJrIPDcrn7wZqGpvDFXKkIu0ygELCQvERqJM+ubiS0W/Z55u5AVFwr5k Nyg8V9e4ZBbq/SsjseViF7ERi7YCT/Zfo1lJcHyl3JUVPVVdCapsuadIqUxVWtQSHeW9 Zz1E/bvIAVuqxC+G4fQhhk/YZZQo6ko00+PQ58eEjNkJ6knNtZv2skDwdnC4N5ccBU9I AQsQ== X-Gm-Message-State: AEkooutuzU7BQ0w+MVi939xe9YpBlTF1PSqOZqHty4C412/rQCcW+NzRdELew0XBuj2tOVtyAXM= X-Received: by 10.46.1.195 with SMTP id f64mr2290038lji.24.1471625200180; Fri, 19 Aug 2016 09:46:40 -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 p82sm1372005lfd.15.2016.08.19.09.46.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Aug 2016 09:46: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:45:39 +0200 Message-Id: <1471628751-47773-2-git-send-email-christophe.milard@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471628751-47773-1-git-send-email-christophe.milard@linaro.org> References: <1471628751-47773-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 {