timer: get TSC frequency from /proc/cpuinfo
authorThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 May 2012 17:00:31 +0000 (19:00 +0200)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 10:01:14 +0000 (11:01 +0100)
commitda6fd0759cbeb5fc14991a79e40105b9f6b99059
tree7696edfbc3c9bffa8eb94ca8158045aa345085ff
parentfb022b85bae4e262922a3ab035adadb03c57387e
timer: get TSC frequency from /proc/cpuinfo

TSC frequency was guessed by reading CLOCK_MONOTONIC_RAW or sleeping 1 sec.
Now, read frequency from cpuinfo first.
Keep other methods as fallbacks.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Ivan Boule <ivan.boule@6wind.com>
lib/librte_eal/linuxapp/eal/eal_timer.c