From patchwork Tue Jun 17 17:55:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Taras Kondratiuk X-Patchwork-Id: 32090 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0657520C81 for ; Tue, 17 Jun 2014 17:56:06 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id i13sf21702787veh.3 for ; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) 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:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=c+jxy2QPVooObhcMski8C43UzCTDe5nAEBxCIFkj3B8=; b=hzy6C5SIsHtjPCWs5O41cVdN8g7pb0WFdwwrp9HAJA7SfNGfFM8cwMFoXHLapMwBl1 0xExy95DGNxMyDBsp+wAjqvSinHB5+5VYuikIYoWwz+kuS3zDgAOZffEqTRT5p14XuA2 ihn7YApsJ7ZV9tx0iAg2IAg2xKplUH+Xg8CmVU2mSsU5ryqaC1QAQwO3FU1hCpCChgB0 5tJDZrQG8oXaQVhl4IHgGsbPk+WaAba+NHK4ShxDG15fku4labjfnxYD8AaBMnpkJ1qS RjMoERMGw/pfcmE3gjbJI+Mrtex8TtUmP84mh6ZCqrTP0tCB8N1w2GSXu6VGEq+bgXqV BgYQ== X-Gm-Message-State: ALoCoQnfwJDneyoxvqMIvuvUufnHCzPHSxUC569mK4zpRnuxv6U0+4SKnMl5Npz5CymI7OxbcJ3Q X-Received: by 10.58.115.234 with SMTP id jr10mr208290veb.19.1403027765780; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.243 with SMTP id z106ls2569253qgz.54.gmail; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) X-Received: by 10.220.250.203 with SMTP id mp11mr22938475vcb.2.1403027765668; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id or9si5769747vcb.81.2014.06.17.10.56.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id il7so6805460vcb.13 for ; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) X-Received: by 10.58.82.106 with SMTP id h10mr1636575vey.60.1403027765585; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) 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.221.54.6 with SMTP id vs6csp227558vcb; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) X-Received: by 10.140.29.11 with SMTP id a11mr15848046qga.95.1403027765161; Tue, 17 Jun 2014 10:56:05 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id s105si10000167qgd.19.2014.06.17.10.56.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:56:05 -0700 (PDT) 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-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WwxaO-0004qD-Uq; Tue, 17 Jun 2014 17:54:20 +0000 Received: from mail-la0-f48.google.com ([209.85.215.48]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1WwxZz-0004mq-My for lng-odp@lists.linaro.org; Tue, 17 Jun 2014 17:53:55 +0000 Received: by mail-la0-f48.google.com with SMTP id gl10so4081742lab.7 for ; Tue, 17 Jun 2014 10:55:32 -0700 (PDT) X-Received: by 10.112.85.202 with SMTP id j10mr1735337lbz.95.1403027732712; Tue, 17 Jun 2014 10:55:32 -0700 (PDT) Received: from localhost.localdomain (176-241-155-136-dynamic.retail.datagroup.ua. [176.241.155.136]) by mx.google.com with ESMTPSA id d3sm11646351lbw.2.2014.06.17.10.55.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 10:55:32 -0700 (PDT) From: Taras Kondratiuk To: lng-odp@lists.linaro.org Date: Tue, 17 Jun 2014 20:55:07 +0300 Message-Id: <1403027720-9738-6-git-send-email-taras.kondratiuk@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> References: <1403027720-9738-1-git-send-email-taras.kondratiuk@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v2 05/18] Split out platform-specific part of odp_barrier.h 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: taras.kondratiuk@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.220.182 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 Signed-off-by: Taras Kondratiuk --- include/odp_barrier.h | 8 ++---- platform/linux-generic/include/plat/odp_barrier.h | 28 +++++++++++++++++++++ 2 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 platform/linux-generic/include/plat/odp_barrier.h diff --git a/include/odp_barrier.h b/include/odp_barrier.h index a7b3215..68065d0 100644 --- a/include/odp_barrier.h +++ b/include/odp_barrier.h @@ -20,16 +20,12 @@ extern "C" { #include -#include - +#include /** * ODP execution barrier */ -typedef struct odp_barrier_t { - int count; /**< @private Thread count */ - odp_atomic_int_t bar; /**< @private Barrier counter */ -} odp_barrier_t; +typedef plat_odp_barrier_t odp_barrier_t; /** diff --git a/platform/linux-generic/include/plat/odp_barrier.h b/platform/linux-generic/include/plat/odp_barrier.h new file mode 100644 index 0000000..f976ef5 --- /dev/null +++ b/platform/linux-generic/include/plat/odp_barrier.h @@ -0,0 +1,28 @@ +/* Copyright (c) 2013, Linaro Limited + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + + +/** + * @file + * + * ODP execution barriers + */ + +#ifndef ODP_BARRIER_H_ +#error This file should be included only into corresponding top level header +#else + +#include + +/** + * ODP execution barrier + */ +typedef struct odp_barrier_t { + int count; /**< @private Thread count */ + odp_atomic_int_t bar; /**< @private Barrier counter */ +} plat_odp_barrier_t; + +#endif