diff mbox

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

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

Commit Message

Hongbo Zhang Jan. 19, 2016, 10:17 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 b019f11..d05176c 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 @@  static int odp_cpuinfo_parser(FILE *file 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;
 }
@@ -402,12 +402,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)