diff mbox

[v3,API-NEXT,03/11] linux-generic: sysinfo: rename odp_cpu_hz_current with odp_ prefix

Message ID 1451385082-8364-4-git-send-email-hongbo.zhang@linaro.org
State Superseded
Headers show

Commit Message

Hongbo Zhang Dec. 29, 2015, 10:31 a.m. UTC
From: Hongbo Zhang <hongbo.zhang@linaro.org>

This function will be moved to their own platform specific files too,
it is better to be named with a odp_ prefix.

Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org>
---
 platform/linux-generic/odp_system_info.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_system_info.c b/platform/linux-generic/odp_system_info.c
index a829b01..449e500 100644
--- a/platform/linux-generic/odp_system_info.c
+++ b/platform/linux-generic/odp_system_info.c
@@ -136,7 +136,7 @@  static int odp_cpuinfo_parser(FILE *file, odp_system_info_t *sysinfo)
 	return 0;
 }
 
-static uint64_t arch_cpu_hz_current(int id)
+static uint64_t odp_cpu_hz_current(int id)
 {
 	char str[1024];
 	FILE *file;
@@ -180,7 +180,7 @@  odp_system_info_t *sysinfo ODP_UNUSED)
 	return 0;
 }
 
-static uint64_t arch_cpu_hz_current(int id ODP_UNUSED)
+static uint64_t odp_cpu_hz_current(int id ODP_UNUSED)
 {
 	return -1;
 }
@@ -227,7 +227,7 @@  static int odp_cpuinfo_parser(FILE *file, odp_system_info_t *sysinfo)
 	return 0;
 }
 
-static uint64_t arch_cpu_hz_current(int id ODP_UNUSED)
+static uint64_t odp_cpu_hz_current(int id ODP_UNUSED)
 {
 	return -1;
 }
@@ -273,7 +273,7 @@  static int odp_cpuinfo_parser(FILE *file, odp_system_info_t *sysinfo)
 	return 0;
 }
 
-static uint64_t arch_cpu_hz_current(int id ODP_UNUSED)
+static uint64_t odp_cpu_hz_current(int id ODP_UNUSED)
 {
 	return -1;
 }
@@ -394,12 +394,12 @@  uint64_t odp_cpu_hz(void)
 {
 	int id = sched_getcpu();
 
-	return arch_cpu_hz_current(id);
+	return odp_cpu_hz_current(id);
 }
 
 uint64_t odp_cpu_hz_id(int id)
 {
-	return arch_cpu_hz_current(id);
+	return odp_cpu_hz_current(id);
 }
 
 uint64_t odp_cpu_hz_max(void)