@@ -164,6 +164,7 @@ __LIB__libodp_la_SOURCES = \
EXTRA_DIST = \
arch/linux/odp_cpu_arch.c \
+ arch/linux/odp_sysinfo_parse.c \
arch/mips64/odp_cpu_arch.c \
arch/mips64/odp_sysinfo_parse.c \
arch/x86/odp_cpu_arch.c \
new file mode 100644
@@ -0,0 +1,19 @@
+/* Copyright (c) 2016, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp_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;
+}
@@ -108,20 +108,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];