diff mbox

[API-NEXT,05/10] example: remove reference of odp_cpu_hz_max()

Message ID 1450349234-26340-6-git-send-email-hongbo.zhang@freescale.com
State New
Headers show

Commit Message

hongbo.zhang@freescale.com Dec. 17, 2015, 10:47 a.m. UTC
From: Hongbo Zhang <hongbo.zhang@linaro.org>

All CPU frequency APIs will be moved as linux-generic internal interfaces,
so they should not be referenced here.

Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org>
---
 example/classifier/odp_classifier.c | 4 +---
 example/generator/odp_generator.c   | 3 +--
 example/ipsec/odp_ipsec.c           | 3 +--
 example/packet/odp_pktio.c          | 3 +--
 example/timer/odp_timer_test.c      | 2 --
 5 files changed, 4 insertions(+), 11 deletions(-)
diff mbox

Patch

diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c
index 0da07e7..a4cba0d 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -881,13 +881,11 @@  static void print_info(char *progname, appl_args_t *appl_args)
 			"---------------\n"
 			"ODP API version: %s\n"
 			"CPU model:       %s\n"
-			"CPU freq (hz):   %"PRIu64"\n"
 			"Cache line size: %i\n"
 			"CPU count:       %i\n"
 			"\n",
 			odp_version_api_str(), odp_cpu_model_str(),
-			odp_cpu_hz_max(), odp_sys_cache_line_size(),
-			odp_cpu_count());
+			odp_sys_cache_line_size(), odp_cpu_count());
 
 	printf("Running ODP appl: \"%s\"\n"
 			"-----------------\n"
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index 2de530d..8134f39 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -1059,11 +1059,10 @@  static void print_info(char *progname, appl_args_t *appl_args)
 	       "---------------\n"
 	       "ODP API version: %s\n"
 	       "CPU model:       %s\n"
-	       "CPU freq (hz):   %"PRIu64"\n"
 	       "Cache line size: %i\n"
 	       "CPU count:       %i\n"
 	       "\n",
-	       odp_version_api_str(), odp_cpu_model_str(), odp_cpu_hz_max(),
+	       odp_version_api_str(), odp_cpu_model_str(),
 	       odp_sys_cache_line_size(), odp_cpu_count());
 
 	printf("Running ODP appl: \"%s\"\n"
diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c
index d784c31..7b08853 100644
--- a/example/ipsec/odp_ipsec.c
+++ b/example/ipsec/odp_ipsec.c
@@ -1507,11 +1507,10 @@  static void print_info(char *progname, appl_args_t *appl_args)
 	       "---------------\n"
 	       "ODP API version: %s\n"
 	       "CPU model:       %s\n"
-	       "CPU freq (hz):   %"PRIu64"\n"
 	       "Cache line size: %i\n"
 	       "CPU count:       %i\n"
 	       "\n",
-	       odp_version_api_str(), odp_cpu_model_str(), odp_cpu_hz_max(),
+	       odp_version_api_str(), odp_cpu_model_str(),
 	       odp_sys_cache_line_size(), odp_cpu_count());
 
 	printf("Running ODP appl: \"%s\"\n"
diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c
index 93c38f5..706e566 100644
--- a/example/packet/odp_pktio.c
+++ b/example/packet/odp_pktio.c
@@ -649,11 +649,10 @@  static void print_info(char *progname, appl_args_t *appl_args)
 	       "---------------\n"
 	       "ODP API version: %s\n"
 	       "CPU model:       %s\n"
-	       "CPU freq (hz):   %"PRIu64"\n"
 	       "Cache line size: %i\n"
 	       "CPU count:       %i\n"
 	       "\n",
-	       odp_version_api_str(), odp_cpu_model_str(), odp_cpu_hz_max(),
+	       odp_version_api_str(), odp_cpu_model_str(),
 	       odp_sys_cache_line_size(), odp_cpu_count());
 
 	printf("Running ODP appl: \"%s\"\n"
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index 0ec73b1..7b1c7bf 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -353,7 +353,6 @@  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_cpu_hz_max());
 	printf("Cache line size: %i\n",        odp_sys_cache_line_size());
 	printf("Max CPU count:   %i\n",        odp_cpu_count());
 
@@ -449,7 +448,6 @@  int main(int argc, char *argv[])
 		return -1;
 	}
 
-	printf("CPU freq %"PRIu64" Hz\n", odp_cpu_hz_max());
 	printf("Timer ticks vs nanoseconds:\n");
 	ns = 0;
 	tick = odp_timer_ns_to_tick(gbls->tp, ns);