@@ -5,6 +5,7 @@ include $(top_srcdir)/platform/Makefile.inc
AM_CPPFLAGS = -I$(srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/include
+AM_CPPFLAGS += -I$(top_srcdir)/platform/$(with_platform)/arch
AM_CPPFLAGS += -I$(top_srcdir)/include/odp/arch/@ARCH_ABI@
AM_CPPFLAGS += -I$(top_builddir)/include
AM_CPPFLAGS += -Iinclude
@@ -115,6 +116,7 @@ nodist_odpapiplatinclude_HEADERS = \
include/odp/api/plat/static_inline.h
noinst_HEADERS = \
+ arch/odp_arch_time_internal.h \
include/_fdserver_internal.h \
include/_ishm_internal.h \
include/_ishmphy_internal.h \
@@ -150,7 +152,6 @@ noinst_HEADERS = \
include/odp_schedule_if.h \
include/odp_sorted_list_internal.h \
include/odp_shm_internal.h \
- include/odp_time_internal.h \
include/odp_timer_internal.h \
include/odp_timer_wheel_internal.h \
include/odp_traffic_mngr_internal.h \
@@ -11,7 +11,7 @@
#include <time.h>
#include <odp_debug_internal.h>
-#include <odp_time_internal.h>
+#include <odp_arch_time_internal.h>
int cpu_has_global_time(void)
{
@@ -4,18 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include "config.h"
-
-#include <odp_posix_extensions.h>
-
-#include <stdlib.h>
-#include <time.h>
-
-#include <odp/api/cpu.h>
-#include <odp/api/hints.h>
-#include <odp/api/system_info.h>
-#include <odp_debug_internal.h>
-#include <odp_time_internal.h>
+#include <odp_arch_time_internal.h>
int cpu_has_global_time(void)
{
@@ -9,7 +9,6 @@
#include <odp/api/cpu.h>
#include <odp/api/hints.h>
#include <odp/api/system_info.h>
-#include <odp_time_internal.h>
uint64_t odp_cpu_cycles(void)
{
similarity index 82%
rename from platform/linux-generic/include/odp_time_internal.h
rename to platform/linux-generic/arch/odp_arch_time_internal.h
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#ifndef ODP_TIME_INTERNAL_H_
-#define ODP_TIME_INTERNAL_H_
+#ifndef ODP_ARCH_TIME_INTERNAL_H_
+#define ODP_ARCH_TIME_INTERNAL_H_
#ifdef __cplusplus
extern "C" {
@@ -41,7 +41,7 @@
#include <cpu_flags.h>
#include <odp_debug_internal.h>
-#include <odp_time_internal.h>
+#include <odp_arch_time_internal.h>
#include <stdio.h>
#include <stdint.h>
@@ -13,7 +13,7 @@
#include <odp/api/cpu.h>
#include <odp/api/hints.h>
#include <odp_debug_internal.h>
-#include <odp_time_internal.h>
+#include <odp_arch_time_internal.h>
uint64_t cpu_global_time(void)
{
@@ -12,7 +12,7 @@
#include <odp/api/time.h>
#include <odp/api/hints.h>
#include <odp_debug_internal.h>
-#include <odp_time_internal.h>
+#include <odp_arch_time_internal.h>
#include <string.h>
#include <inttypes.h>