timer: move from common to Unix directory
authorFady Bader <fady@mellanox.com>
Thu, 18 Jun 2020 06:55:21 +0000 (09:55 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 23 Jun 2020 16:33:20 +0000 (18:33 +0200)
commit03437f2dc83e0047817bf140be6a7475f5257e63
treecd9456538b23489d695c5e6ae481b50badcd3372
parent26a6946a86bc38243b0d45d93b0cf345d65c1972
timer: move from common to Unix directory

EAL common timer doesn't compile under Windows.

Compilation log:
error LNK2019:
unresolved external symbol nanosleep referenced in function
rte_delay_us_sleep
error LNK2019:
unresolved external symbol get_tsc_freq referenced in function set_tsc_freq
error LNK2019:
unresolved external symbol sleep referenced in function set_tsc_freq

The reason was that some functions called POSIX functions.
The solution was to move POSIX dependent functions from common to Unix.

Signed-off-by: Fady Bader <fady@mellanox.com>
Reviewed-by: Tal Shnaiderman <talshn@mellanox.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
lib/librte_eal/common/eal_common_timer.c
lib/librte_eal/freebsd/Makefile
lib/librte_eal/linux/Makefile
lib/librte_eal/unix/eal_unix_timer.c [new file with mode: 0644]
lib/librte_eal/unix/meson.build