timer: allow first subsystem init from secondary
authorErik Gabriel Carrillo <erik.g.carrillo@intel.com>
Thu, 9 May 2019 19:39:36 +0000 (14:39 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 9 May 2019 22:09:29 +0000 (00:09 +0200)
commit62e5c38ee4a197e9cf196830324b7fd76c34c022
tree15d0e6719d2d8a9c7d1f2c3b6f0713e13eb14f54
parenta55f182b77507f3c7ea65362c759a5a96ddc784b
timer: allow first subsystem init from secondary

Since memzones can be reserved from secondary processes as well as
primary processes, if the first call to the timer subsystem init
function occurs in a secondary process, we should allow it to succeed.

Fixes: c0749f7096c7 ("timer: allow management in shared memory")

Signed-off-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
lib/librte_timer/rte_timer.c