diff mbox

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

Message ID 1453884974-24724-4-git-send-email-hongbo.zhang@linaro.org
State Accepted
Commit 55f7ebee68092a8ee8066af874e12d99f49ad91f
Headers show

Commit Message

Hongbo Zhang Jan. 27, 2016, 8:56 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 113ae63..fd6b866 100644
--- a/platform/linux-generic/odp_system_info.c
+++ b/platform/linux-generic/odp_system_info.c
@@ -137,7 +137,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;
@@ -181,7 +181,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;
 }
@@ -228,7 +228,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;
 }
@@ -274,7 +274,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;
 }
@@ -403,12 +403,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)