@@ -42,7 +42,6 @@ void odp_print_system_info(void)
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("CPU count: %i\n", odp_cpu_count());
printf("CPU mask: %s\n", str);
@@ -338,7 +338,6 @@ void odp_print_system_info(void)
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("CPU count: %i\n", odp_cpu_count());
printf("CPU mask: %s\n", str);
@@ -1114,11 +1114,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"
@@ -705,7 +705,6 @@ static void test_cpu_freq(void)
odp_time_t cur_time, test_time, start_time, end_time;
uint64_t c1, c2, cycles;
uint64_t nsec;
- double diff_max_hz, max_cycles;
printf("\nCPU cycle count frequency test (runs about %i sec)\n",
TEST_SEC);
@@ -727,15 +726,9 @@ static void test_cpu_freq(void)
nsec = odp_time_to_ns(test_time);
cycles = odp_cpu_cycles_diff(c2, c1);
- max_cycles = (nsec * odp_cpu_hz_max()) / 1000000000.0;
-
- /* Compare measured CPU cycles to maximum theoretical CPU cycle count */
- diff_max_hz = ((double)(cycles) - max_cycles) / max_cycles;
printf("odp_time %" PRIu64 " ns\n", nsec);
printf("odp_cpu_cycles %" PRIu64 " CPU cycles\n", cycles);
- printf("odp_sys_cpu_hz %" PRIu64 " hz\n", odp_cpu_hz_max());
- printf("Diff from max CPU freq %f%%\n", diff_max_hz * 100.0);
printf("\n");
}
@@ -849,7 +842,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());