Re: [lng-odp] [API-NEXT PATCHv6 2/4] linux-generic: timer: implement odp_timer_capability()

2017-07-14 Thread Savolainen, Petri (Nokia - FI/Espoo)
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

Re: [lng-odp] [API-NEXT PATCHv6 2/4] linux-generic: timer: implement odp_timer_capability()

2017-07-13 Thread Kevin Wang
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

Re: [lng-odp] [API-NEXT PATCHv6 2/4] linux-generic: timer: implement odp_timer_capability()

2017-07-13 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -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

[lng-odp] [API-NEXT PATCHv6 2/4] linux-generic: timer: implement odp_timer_capability()

2017-07-12 Thread Kevin Wang
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