Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-10 Thread Nicolas Morey-Chaisemartin
gt;> >>>> >>>>> -Original Message- >>>>> From: EXT Ivan Khoronzhuk [mailto:ivan.khoronz...@linaro.org] >>>>> Sent: Wednesday, September 09, 2015 3:35 PM >>>>> To: Savolainen, Petri (Nokia - FI/Espoo); lng-odp@lists.lin

Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-10 Thread Ivan Khoronzhuk
PM To: Savolainen, Petri (Nokia - FI/Espoo); lng-odp@lists.linaro.org Subject: Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time On 09.09.15 15:00, Savolainen, Petri (Nokia - FI/Espoo) wrote: -Original Message- From: lng-odp [mailto:lng-odp-boun

Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-09 Thread Nicolas Morey-Chaisemartin
On 09/07/2015 10:50 AM, Ivan Khoronzhuk wrote: > The resolution of schedule time can be more than 1ns. As result > can happen that 1ns corresponds 0 ticks of timer counter, but if > passed 1ns it's obvious that user wanted to schedule at least once. > Currently it can lead to wait forever, as 0

Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-09 Thread Ivan Khoronzhuk
@lists.linaro.org Subject: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time The resolution of schedule time can be more than 1ns. As result can happen that 1ns corresponds 0 ticks of timer counter, but if passed 1ns it's obvious that user wanted to schedule at least once. Currently it can

Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-09 Thread Ivan Khoronzhuk
On 09.09.15 15:00, Savolainen, Petri (Nokia - FI/Espoo) wrote: -Original Message- From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of ext Ivan Khoronzhuk Sent: Monday, September 07, 2015 11:51 AM To: lng-odp@lists.linaro.org Subject: [lng-odp] [Patch] linux-generic

Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-09 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of > ext Ivan Khoronzhuk > Sent: Monday, September 07, 2015 11:51 AM > To: lng-odp@lists.linaro.org > Subject: [lng-odp] [Patch] linux-generic: odp_schedule: fix >

Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-09 Thread Ivan Khoronzhuk
@lists.linaro.org Subject: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time The resolution of schedule time can be more than 1ns. As result can happen that 1ns corresponds 0 ticks of timer counter, but if passed 1ns it's obvious that user wanted to schedule at least once

Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-09 Thread Ivan Khoronzhuk
@lists.linaro.org Subject: Re: [lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time On 09.09.15 15:00, Savolainen, Petri (Nokia - FI/Espoo) wrote: -Original Message- From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of ext Ivan Khoronzhuk Sent: Monday

[lng-odp] [Patch] linux-generic: odp_schedule: fix odp_schdule_wait_time

2015-09-07 Thread Ivan Khoronzhuk
The resolution of schedule time can be more than 1ns. As result can happen that 1ns corresponds 0 ticks of timer counter, but if passed 1ns it's obvious that user wanted to schedule at least once. Currently it can lead to wait forever, as 0 corresponds to ODP_SCHED_WAIT, it can block program flow