bject: Re: [lng-odp] [API-NEXT PATCHv6 2/4] linux-generic: timer: implement
odp_timer_capability()
I don't think to add/multiply the result from clock_getres() is a better
solution here because clock_getres() always return 1ns on most platform.
This solution did the basic measurement on
iginal Message-
> > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of
> Kevin
> > Wang
> > Sent: Thursday, July 13, 2017 8:47 AM
> > To: lng-odp@lists.linaro.org
> > Cc: Kevin Wang
> > Subject: [lng-odp] [API-NEXT PATCHv6 2/4] linux-gener
> -Original Message-
> From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Kevin
> Wang
> Sent: Thursday, July 13, 2017 8:47 AM
> To: lng-odp@lists.linaro.org
> Cc: Kevin Wang
> Subject: [lng-odp] [API-NEXT PATCHv6 2/4] linux-gene
Implement a new internal function timer_res_init() to detect the max
timer resolution without overrun at the ODP init stage. It will check
timer resolution from 1ms to 100us, 10us...1ns until the timer is
overrun.
Signed-off-by: Kevin Wang
---
platform/linux-generic/odp_timer.c | 98