@@ -163,6 +163,7 @@ __LIB__libodp_la_SOURCES = \
EXTRA_DIST = \
arch/linux/odp_cpu_cycles.c \
+ arch/linux/odp_sysinfo_parse.c \
arch/mips64/odp_cpu_cycles.c \
arch/mips64/odp_sysinfo_parse.c \
arch/x86/odp_cpu_cycles.c \
new file mode 100644
@@ -0,0 +1,20 @@
+/* Copyright (c) 2015, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp_internal.h>
+#include <odp_cpu_internal.h>
+#include <string.h>
+
+int odp_cpuinfo_parser(FILE *file ODP_UNUSED,
+odp_system_info_t *sysinfo ODP_UNUSED)
+{
+ return 0;
+}
+
+uint64_t odp_cpu_hz_current(int id ODP_UNUSED)
+{
+ return -1;
+}
@@ -109,20 +109,7 @@ static int huge_page_size(void)
/*
* HW specific /proc/cpuinfo file parsing
*/
-#if defined __arm__ || defined __aarch64__
-
-static int odp_cpuinfo_parser(FILE *file ODP_UNUSED,
-odp_system_info_t *sysinfo ODP_UNUSED)
-{
- return 0;
-}
-
-static uint64_t odp_cpu_hz_current(int id ODP_UNUSED)
-{
- return -1;
-}
-
-#elif defined __powerpc__
+#if defined __powerpc__
static int odp_cpuinfo_parser(FILE *file, odp_system_info_t *sysinfo)
{
char str[1024];