[API,NEXT,v5,11/17] validation: system: update legacy CPU API names

Message ID 1442325342-13806-12-git-send-email-hongbo.zhang@freescale.com
State New
Headers show

Commit Message

hongbo.zhang@freescale.com Sept. 15, 2015, 1:55 p.m.
From: Hongbo Zhang <hongbo.zhang@linaro.org>

The legecy CPU related APIs, odp_sys_cpu_model_str() and odp_sys_cpu_hz()
are moved to cpu.h, and then accordingly renamed to odp_cpu_model_str()
and odp_cpu_hz(), this patch replaces the old names in validation code by
the new ones.

Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org>
---
 test/validation/system/system.c | 12 ++++++------
 test/validation/system/system.h |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

Patch

diff --git a/test/validation/system/system.c b/test/validation/system/system.c
index 15f3ac4..7f751a3 100644
--- a/test/validation/system/system.c
+++ b/test/validation/system/system.c
@@ -49,11 +49,11 @@  void system_test_odp_sys_cache_line_size(void)
 	CU_ASSERT(ODP_CACHE_LINE_SIZE == cache_size);
 }
 
-void system_test_odp_sys_cpu_model_str(void)
+void system_test_odp_cpu_model_str(void)
 {
 	char model[128];
 
-	snprintf(model, 128, "%s", odp_sys_cpu_model_str());
+	snprintf(model, 128, "%s", odp_cpu_model_str());
 	CU_ASSERT(strlen(model) > 0);
 	CU_ASSERT(strlen(model) < 127);
 }
@@ -75,11 +75,11 @@  void system_test_odp_sys_huge_page_size(void)
 	CU_ASSERT(0 < page);
 }
 
-void system_test_odp_sys_cpu_hz(void)
+void system_test_odp_cpu_hz(void)
 {
 	uint64_t hz;
 
-	hz = odp_sys_cpu_hz();
+	hz = odp_cpu_hz();
 	CU_ASSERT(0 < hz);
 }
 
@@ -87,10 +87,10 @@  CU_TestInfo system_suite[] = {
 	_CU_TEST_INFO(system_test_odp_version_numbers),
 	_CU_TEST_INFO(system_test_odp_cpu_count),
 	_CU_TEST_INFO(system_test_odp_sys_cache_line_size),
-	_CU_TEST_INFO(system_test_odp_sys_cpu_model_str),
+	_CU_TEST_INFO(system_test_odp_cpu_model_str),
 	_CU_TEST_INFO(system_test_odp_sys_page_size),
 	_CU_TEST_INFO(system_test_odp_sys_huge_page_size),
-	_CU_TEST_INFO(system_test_odp_sys_cpu_hz),
+	_CU_TEST_INFO(system_test_odp_cpu_hz),
 	CU_TEST_INFO_NULL,
 };
 
diff --git a/test/validation/system/system.h b/test/validation/system/system.h
index c8bd2d4..d05f104 100644
--- a/test/validation/system/system.h
+++ b/test/validation/system/system.h
@@ -13,10 +13,10 @@ 
 void system_test_odp_version_numbers(void);
 void system_test_odp_cpu_count(void);
 void system_test_odp_sys_cache_line_size(void);
-void system_test_odp_sys_cpu_model_str(void);
+void system_test_odp_cpu_model_str(void);
 void system_test_odp_sys_page_size(void);
 void system_test_odp_sys_huge_page_size(void);
-void system_test_odp_sys_cpu_hz(void);
+void system_test_odp_cpu_hz(void);
 
 /* test arrays: */
 extern CU_TestInfo system_suite[];