From patchwork Wed Sep 9 10:06:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 53308 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 5DA7422B19 for ; Wed, 9 Sep 2015 10:07:44 +0000 (UTC) Received: by wicmn1 with SMTP id mn1sf4988029wic.1 for ; Wed, 09 Sep 2015 03:07:43 -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: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:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=qsVd1s2whWOJWkk0YCiTUGcJ7SfKnFYNK8Y6yb38mK8=; b=f9LIqqFIIgNwYqEPmEs3uL0nSkAX08L1Vl967+8gpXC1rsWWqbFocmm88y7ffXsKjs 5gdwag+32tsbMM60Twus23v98N8n2McQcrUAvwkOHMNusnau6nnTsuEX13y6zjnE1vM4 AxlBHiosfq2jkyeUWCfKKwzjzPdu1mBw1qmHN0eQpZ9Wnsz+E8OyIB355CtMqJyjU1Us L3Bc70rQAOjy72Tjiv1z1jUIj2ZioGveyYduASi/9G/yhJ2n1x+08nMGl85HFe7I8zan le6VYHRyle5Unna6SemssYgphNzOuDn7nc+46XGYwZcI5pTB5852ckBMB57VWoj+l3Ne gmbw== X-Gm-Message-State: ALoCoQmfhISAAnB4OM+sZvMxy0KMhhnER+sgyEBJS8DmUXLrOIloHMXKRuP1e1FB93K8ToOJKJVh X-Received: by 10.152.3.131 with SMTP id c3mr5004844lac.4.1441793263574; Wed, 09 Sep 2015 03:07:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.225 with SMTP id o1ls22665lag.36.gmail; Wed, 09 Sep 2015 03:07:43 -0700 (PDT) X-Received: by 10.112.159.1 with SMTP id wy1mr28525142lbb.55.1441793263419; Wed, 09 Sep 2015 03:07:43 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id i4si6207968lai.25.2015.09.09.03.07.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Sep 2015 03:07:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbcao8 with SMTP id ao8so2804263lbc.3 for ; Wed, 09 Sep 2015 03:07:43 -0700 (PDT) X-Received: by 10.112.151.106 with SMTP id up10mr24191118lbb.106.1441793263288; Wed, 09 Sep 2015 03:07:43 -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.112.59.35 with SMTP id w3csp226195lbq; Wed, 9 Sep 2015 03:07:42 -0700 (PDT) X-Received: by 10.140.106.226 with SMTP id e89mr37231430qgf.84.1441793262314; Wed, 09 Sep 2015 03:07:42 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id q103si3380503qkq.110.2015.09.09.03.07.41; Wed, 09 Sep 2015 03:07:42 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 3D9CC61FA3; Wed, 9 Sep 2015 10:07:41 +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, URIBL_BLOCKED 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 68F0761CEB; Wed, 9 Sep 2015 10:06:57 +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 68604619E4; Wed, 9 Sep 2015 10:06:51 +0000 (UTC) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by lists.linaro.org (Postfix) with ESMTPS id 2EE27619E4 for ; Wed, 9 Sep 2015 10:06:46 +0000 (UTC) Received: by lbbmp1 with SMTP id mp1so2809392lbb.1 for ; Wed, 09 Sep 2015 03:06:44 -0700 (PDT) X-Received: by 10.112.161.137 with SMTP id xs9mr28239963lbb.4.1441793204835; Wed, 09 Sep 2015 03:06:44 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-161-180.pppoe.mtu-net.ru. [91.76.161.180]) by smtp.gmail.com with ESMTPSA id qu6sm1654092lbb.27.2015.09.09.03.06.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 03:06:44 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 9 Sep 2015 13:06:34 +0300 Message-Id: <1441793199-30966-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441793199-30966-1-git-send-email-maxim.uvarov@linaro.org> References: <1441793199-30966-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/6] move odph_pause inside linux-generic X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@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.217.177 as permitted sender) smtp.mailfrom=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 Move odph_pause inside linux-generic. Validation test is also useless with such move. Signed-off-by: Maxim Uvarov --- helper/Makefile.am | 4 +--- helper/ring.c | 2 +- helper/test/Makefile.am | 4 +--- helper/test/odph_pause.c | 14 -------------- platform/linux-generic/Makefile.am | 1 + .../linux-generic/include/odp_pause_internal.h | 0 6 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 helper/test/odph_pause.c rename helper/odph_pause.h => platform/linux-generic/include/odp_pause_internal.h (100%) diff --git a/helper/odph_pause.h b/platform/linux-generic/include/odp_pause_internal.h similarity index 100% rename from helper/odph_pause.h rename to platform/linux-generic/include/odp_pause_internal.h diff --git a/helper/Makefile.am b/helper/Makefile.am index 1a74e8e..cde8af2 100644 --- a/helper/Makefile.am +++ b/helper/Makefile.am @@ -19,9 +19,7 @@ helperinclude_HEADERS = \ $(srcdir)/include/odp/helper/tcp.h\ $(srcdir)/include/odp/helper/udp.h -noinst_HEADERS = \ - $(srcdir)/odph_debug.h \ - $(srcdir)/odph_pause.h +noinst_HEADERS = $(srcdir)/odph_debug.h __LIB__libodphelper_la_SOURCES = \ linux.c \ diff --git a/helper/ring.c b/helper/ring.c index 3122173..489bdce 100644 --- a/helper/ring.c +++ b/helper/ring.c @@ -71,7 +71,7 @@ #include #include -#include "odph_pause.h" +#include "odp_pause_internal.h" #include #include #include diff --git a/helper/test/Makefile.am b/helper/test/Makefile.am index fbf5a9b..7b73602 100644 --- a/helper/test/Makefile.am +++ b/helper/test/Makefile.am @@ -7,8 +7,7 @@ TESTS_ENVIRONMENT += TEST_DIR=${builddir} EXECUTABLES = odp_chksum$(EXEEXT) \ odp_thread$(EXEEXT) \ - odp_process$(EXEEXT)\ - odph_pause$(EXEEXT) + odp_process$(EXEEXT) COMPILE_ONLY = @@ -28,4 +27,3 @@ dist_odp_thread_SOURCES = odp_thread.c odp_thread_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la dist_odp_process_SOURCES = odp_process.c odp_process_LDADD = $(LIB)/libodphelper.la $(LIB)/libodp.la -odph_pause_SOURCES = odph_pause.c diff --git a/helper/test/odph_pause.c b/helper/test/odph_pause.c deleted file mode 100644 index f5f5da3..0000000 --- a/helper/test/odph_pause.c +++ /dev/null @@ -1,14 +0,0 @@ -/* Copyright (c) 2015, Linaro Limited - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#include -#include "../odph_pause.h" - -int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED) -{ - odph_pause(); - return 0; -} diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 4c79730..b9ed3b0 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -128,6 +128,7 @@ noinst_HEADERS = \ ${srcdir}/include/odp_packet_io_internal.h \ ${srcdir}/include/odp_packet_io_queue.h \ ${srcdir}/include/odp_packet_socket.h \ + ${srcdir}/include/odp_pause_internal.h \ ${srcdir}/include/odp_pool_internal.h \ ${srcdir}/include/odp_queue_internal.h \ ${srcdir}/include/odp_schedule_internal.h \