keepalive: set timestamp on core registration
authorHarry van Haaren <harry.van.haaren@intel.com>
Tue, 8 Mar 2016 10:50:39 +0000 (10:50 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 8 Mar 2016 11:40:54 +0000 (12:40 +0100)
commit685e865495d24681db75b63f00ed68279fc7844f
treef823063fbc96f657bde23f9faf31e3958485f9a5
parent13f3f4f1d728b54e86cb77a5122c466873a51d68
keepalive: set timestamp on core registration

This patch sets a timestamp on each lcore when it is registered
for keepalive. This causes the first values read by the monitor
to show time since the core was registered, instead of the delta
between 0 and the timestamp counter.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
lib/librte_eal/common/rte_keepalive.c