diff mbox

[PATCHv8,04/12] move odph_pause inside linux-generic

Message ID 1439895698-18597-5-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov Aug. 18, 2015, 11:01 a.m. UTC
Move odph_pause inside linux-generic. Validation test is also useless
with such move.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 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 mbox

Patch

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 844abf7..6bb2bda 100644
--- a/helper/ring.c
+++ b/helper/ring.c
@@ -71,7 +71,7 @@ 
 
 #include <odp/shared_memory.h>
 #include <odp/spinlock.h>
-#include "odph_pause.h"
+#include "odp_pause_internal.h"
 #include <odp/align.h>
 #include <fcntl.h>
 #include <stdio.h>
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 <test_debug.h>
-#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 fb145e7..cfeeef9 100644
--- a/platform/linux-generic/Makefile.am
+++ b/platform/linux-generic/Makefile.am
@@ -122,6 +122,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 \