eal: deduplicate timer functions
authorRavi Kerur <rkerur@gmail.com>
Sat, 25 Jul 2015 19:36:28 +0000 (12:36 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jul 2015 00:11:00 +0000 (02:11 +0200)
commit040cf8a4118787e6cd3963ed5fee1539f837c375
tree14d6e3ba553db0b0ae2cfabc637f25c9b4dae531
parentbd8bf7e172abfa765e0365f4e80ed99772309b3b
eal: deduplicate timer functions

Move common functions from BSD/Linux to eal_common_timer.c.
BSD uses sysctl and Linux uses CLOCK_MONOTIC_RAW to calibrate TSC.
HPET is specific to Linux and not integrated in the common init.

Signed-off-by: Ravi Kerur <rkerur@gmail.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/bsdapp/eal/eal_timer.c
lib/librte_eal/common/eal_common_timer.c [new file with mode: 0644]
lib/librte_eal/common/eal_private.h
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/linuxapp/eal/eal_timer.c