aboutsummaryrefslogtreecommitdiff
path: root/example/timer/odp_timer_test.c
diff options
context:
space:
mode:
authorHongbo Zhang <hongbo.zhang@linaro.org>2015-10-13 19:13:08 +0800
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-02-08 20:45:22 +0300
commitbd4a6b79eb24f80e4022cefba377846d6a449a3e (patch)
treeb18c318c37ed7547cc8e940ce7fc08fd50fd9a83 /example/timer/odp_timer_test.c
parent412c0bac7a13dc2ad97c690d6246facb4627b32c (diff)
api: sysinfo: move CPU Hz API to cpu.h
The legacy odp_sys_cpu_hz() is moved to cpu.h then accordingly renamed to odp_cpu_hz(), and all the calling functions are also updated. Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Conflicts: platform/linux-generic/odp_time.c test/performance/odp_scheduling.c test/validation/system/system.c test/validation/system/system.h
Diffstat (limited to 'example/timer/odp_timer_test.c')
-rw-r--r--example/timer/odp_timer_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index ab7f809b3..f9ce3bfa8 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -356,7 +356,7 @@ int main(int argc, char *argv[])
printf("---------------\n");
printf("ODP API version: %s\n", odp_version_api_str());
printf("CPU model: %s\n", odp_cpu_model_str());
- printf("CPU freq (hz): %"PRIu64"\n", odp_sys_cpu_hz());
+ printf("CPU freq (hz): %"PRIu64"\n", odp_cpu_hz());
printf("Cache line size: %i\n", odp_sys_cache_line_size());
printf("Max CPU count: %i\n", odp_cpu_count());
@@ -459,7 +459,7 @@ int main(int argc, char *argv[])
goto err;
}
- printf("CPU freq %"PRIu64" Hz\n", odp_sys_cpu_hz());
+ printf("CPU freq %"PRIu64" Hz\n", odp_cpu_hz());
printf("Timer ticks vs nanoseconds:\n");
ns = 0;
tick = odp_timer_ns_to_tick(gbls->tp, ns);