[dpdk-dev] [PATCH v9 2/3] Move common functions in eal_timer.c

2015-07-27 Thread Thomas Monjalon
2015-07-25 12:36, Ravi Kerur > static int > set_tsc_freq_from_sysctl(void) > { > size_t sz; > int tmp; > + uint64_t tsc_hz; > > sz = sizeof(tmp); > tmp = 0; > @@ -94,42 +77,23 @@ set_tsc_freq_from_sysctl(void) > else if (tmp != 1) > RTE_LOG(WARNI

[dpdk-dev] [PATCH v9 2/3] Move common functions in eal_timer.c

2015-07-27 Thread Thomas Monjalon
2015-07-25 12:36, Ravi Kerur: > +static void > +set_tsc_freq_fallback(void) > +{ > + RTE_LOG(WARNING, EAL, "WARNING: clock_gettime cannot use " > + "CLOCK_MONOTONIC_RAW and HPET is not available" Not generic enough for BSD. We can say "TSC frequency estimated roughly" > +

[dpdk-dev] [PATCH v9 2/3] Move common functions in eal_timer.c

2015-07-25 Thread Ravi Kerur
Changes in v9 Rebase to latest code. Changes in v8 Reorder eal_common_timer.c compilation. Changes in v7 None Changes in v6 Added new line between Copyright and header file inclusion in eal_common_timer.c. Changes in v5 Rebase to latest code. Changes in v4 Removed extern declaration of eal_tsc