timer: fix reloading after changes
authorVadim Suraev <vadim.suraev@gmail.com>
Wed, 21 May 2014 19:53:45 +0000 (22:53 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 26 May 2014 16:22:03 +0000 (18:22 +0200)
commit83cb53f3a2630fc39e6d87372aefe6950df4b144
tree8101e4836444e99e4c866ad68a52c6ed3f780b1f
parentcd64eeac116d3bb4871d114b105440b4dd11b8e0
timer: fix reloading after changes

Bug: when a periodic timer's callback is running, if another
 timer is manipulated, the periodic timer is not reloaded.
Solution: set the update flag only if the modified timer is
 in RUNNING state

Signed-off-by: Vadim Suraev <vadim.suraev@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_timer/rte_timer.c