eal/linux: use libc malloc in alarm
authorJianfeng Tan <jianfeng.tan@intel.com>
Tue, 26 Jun 2018 10:53:12 +0000 (11:53 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 13 Jul 2018 10:39:51 +0000 (12:39 +0200)
commit204df26c1b276d4210bf0594da4ac88fc8cd9210
tree38c8125ae6c5f424661afcabacff39821edee8d6
parentc63a42535ada8e4226b9a41bb7757d0d045f8a72
eal/linux: use libc malloc in alarm

Alarm API is going to be used by IPC internally. However, because
memory subsystem depends on IPC, alarm API cannot use rte_malloc as
it creates a circular dependency.

To avoid such chicken and egg problem, we change to use glibc malloc
in the alarm API.

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_alarm.c