From: Matias Elo <matias....@nokia.com>

Signed-off-by: Matias Elo <matias....@nokia.com>
---
/** Email created from pull request 664 (matiaselo:dev/timer_pool_capability)
 ** https://github.com/Linaro/odp/pull/664
 ** Patch: https://github.com/Linaro/odp/pull/664.patch
 ** Base sha: 9b2b5a9695ad66977c964c83691cd2fef4c45b85
 ** Merge commit sha: 27aa8cc28e9bd9a6bc424ea24283545eeef5bfa5
 **/
 platform/linux-generic/odp_timer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/platform/linux-generic/odp_timer.c 
b/platform/linux-generic/odp_timer.c
index 5fef5af2e..a48af8321 100644
--- a/platform/linux-generic/odp_timer.c
+++ b/platform/linux-generic/odp_timer.c
@@ -1072,6 +1072,9 @@ int odp_timer_capability(odp_timer_clk_src_t clk_src,
        int ret = 0;
 
        if (clk_src == ODP_CLOCK_CPU) {
+               capa->max_pools_combined = MAX_TIMER_POOLS;
+               capa->max_pools = MAX_TIMER_POOLS;
+               capa->max_timers = 0;
                capa->highest_res_ns = highest_res_ns;
        } else {
                ODP_ERR("ODP timer system doesn't support external clock source 
currently\n");

Reply via email to