@@ -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 \
@@ -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>
@@ -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
deleted file mode 100644
@@ -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;
-}
@@ -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 \
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