This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via aaca222d10a3829e4c982a1b4842b0be11860b7d (commit) via 25f82fc54a78100098eae5b22719571b6991c955 (commit) from ce4fec46c1f6821afb5d0ef9c3099cd094153fd9 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit aaca222d10a3829e4c982a1b4842b0be11860b7d Author: Brian Brooks brian.brooks@linaro.org Date: Mon Jul 18 13:16:46 2016 -0400
timer: add missing atomic decrement
Signed-off-by: Brian Brooks brian.brooks@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c index b26ac6b..ee4c4c0 100644 --- a/platform/linux-generic/odp_timer.c +++ b/platform/linux-generic/odp_timer.c @@ -316,6 +316,8 @@ static void odp_timer_pool_del(odp_timer_pool *tp) int rc = odp_shm_free(tp->shm); if (rc != 0) ODP_ABORT("Failed to free shared memory (%d)\n", rc); + + odp_atomic_sub_u32(&num_timer_pools, 1); }
static inline odp_timer_t timer_alloc(odp_timer_pool *tp,
commit 25f82fc54a78100098eae5b22719571b6991c955 Author: Brian Brooks brian.brooks@linaro.org Date: Mon Jul 18 13:16:45 2016 -0400
example: odp_timer_simple: decrease timer pool resolution
POSIX timer overruns are experienced on Linux generic platforms when resolution is less than one millisecond. Decrease resolution from 10 microseconds to 10 milliseconds so this example program works as intended on generic Linux platforms.
Signed-off-by: Brian Brooks brian.brooks@linaro.org Reviewed-by: Kevin Wang kevin.wang@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/example/timer/odp_timer_simple.c b/example/timer/odp_timer_simple.c index 98c08ce..70804bb 100644 --- a/example/timer/odp_timer_simple.c +++ b/example/timer/odp_timer_simple.c @@ -61,8 +61,8 @@ int main(int argc ODP_UNUSED, char *argv[] ODP_UNUSED) /* * Create pool of timeouts */ - tparams.res_ns = 10 * ODP_TIME_USEC_IN_NS; - tparams.min_tmo = 10 * ODP_TIME_USEC_IN_NS; + tparams.res_ns = 10 * ODP_TIME_MSEC_IN_NS; + tparams.min_tmo = 10 * ODP_TIME_MSEC_IN_NS; tparams.max_tmo = 1 * ODP_TIME_SEC_IN_NS; tparams.num_timers = 1; /* One timer per worker */ tparams.priv = 0; /* Shared */
-----------------------------------------------------------------------
Summary of changes: example/timer/odp_timer_simple.c | 4 ++-- platform/linux-generic/odp_timer.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-)
hooks/post-receive