aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/arch/x86
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2020-11-21 16:40:38 +0200
committerMatias Elo <matias.elo@nokia.com>2020-12-23 18:04:25 +0200
commite185f53434028f84fb26a3b3cb75e8769b23393b (patch)
treec4e1412e151cbda467ad589d30f294f120db284c /platform/linux-generic/arch/x86
parent56cca35349616e1aed4ef92bc1d786d2fb11af4d (diff)
linux-gen: rename some global symbols in the static library
Rename some symbols that are global in the static library, in order to avoid clashes with application code. The prefix "_odp_" is added to the existing names. This patch renames most of the global symbols, a few more still remain to be renamed. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/arch/x86')
-rw-r--r--platform/linux-generic/arch/x86/cpu_flags.c4
-rw-r--r--platform/linux-generic/arch/x86/cpu_flags.h4
-rw-r--r--platform/linux-generic/arch/x86/odp_cpu_cycles.c2
-rw-r--r--platform/linux-generic/arch/x86/odp_sysinfo_parse.c6
4 files changed, 8 insertions, 8 deletions
diff --git a/platform/linux-generic/arch/x86/cpu_flags.c b/platform/linux-generic/arch/x86/cpu_flags.c
index f5c9c0d45..c75a87233 100644
--- a/platform/linux-generic/arch/x86/cpu_flags.c
+++ b/platform/linux-generic/arch/x86/cpu_flags.c
@@ -329,7 +329,7 @@ static const char *cpu_get_flag_name(enum rte_cpu_flag_t feature)
return cpu_feature_table[feature].name;
}
-void cpu_flags_print_all(void)
+void _odp_cpu_flags_print_all(void)
{
int len, i;
int max_str = 1024;
@@ -367,7 +367,7 @@ int _odp_cpu_has_global_time(void)
return 0;
}
-int cpu_flags_has_rdtsc(void)
+int _odp_cpu_flags_has_rdtsc(void)
{
if (cpu_get_flag_enabled(RTE_CPUFLAG_TSC) > 0)
return 1;
diff --git a/platform/linux-generic/arch/x86/cpu_flags.h b/platform/linux-generic/arch/x86/cpu_flags.h
index 879c9aadc..8d485dbfa 100644
--- a/platform/linux-generic/arch/x86/cpu_flags.h
+++ b/platform/linux-generic/arch/x86/cpu_flags.h
@@ -11,8 +11,8 @@
extern "C" {
#endif
-void cpu_flags_print_all(void);
-int cpu_flags_has_rdtsc(void);
+void _odp_cpu_flags_print_all(void);
+int _odp_cpu_flags_has_rdtsc(void);
#ifdef __cplusplus
}
diff --git a/platform/linux-generic/arch/x86/odp_cpu_cycles.c b/platform/linux-generic/arch/x86/odp_cpu_cycles.c
index c7d97a764..406668a79 100644
--- a/platform/linux-generic/arch/x86/odp_cpu_cycles.c
+++ b/platform/linux-generic/arch/x86/odp_cpu_cycles.c
@@ -12,7 +12,7 @@
int _odp_cpu_cycles_init_global(void)
{
- if (cpu_flags_has_rdtsc() == 0) {
+ if (_odp_cpu_flags_has_rdtsc() == 0) {
ODP_ERR("RDTSC instruction not supported\n");
return -1;
}
diff --git a/platform/linux-generic/arch/x86/odp_sysinfo_parse.c b/platform/linux-generic/arch/x86/odp_sysinfo_parse.c
index d21ccf30c..c74c52045 100644
--- a/platform/linux-generic/arch/x86/odp_sysinfo_parse.c
+++ b/platform/linux-generic/arch/x86/odp_sysinfo_parse.c
@@ -8,7 +8,7 @@
#include "cpu_flags.h"
#include <string.h>
-int cpuinfo_parser(FILE *file, system_info_t *sysinfo)
+int _odp_cpuinfo_parser(FILE *file, system_info_t *sysinfo)
{
char str[1024];
char *pos, *pos_end;
@@ -77,9 +77,9 @@ int cpuinfo_parser(FILE *file, system_info_t *sysinfo)
return 0;
}
-void sys_info_print_arch(void)
+void _odp_sys_info_print_arch(void)
{
- cpu_flags_print_all();
+ _odp_cpu_flags_print_all();
}
uint64_t odp_cpu_arch_hz_current(int id)