Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-08 Thread Sean Anderson
On 9/8/20 8:01 PM, Simon Glass wrote: > Hi Sean, > > On Tue, 8 Sep 2020 at 17:59, Sean Anderson wrote: >> >> On 9/8/20 7:56 PM, Simon Glass wrote: >>> Hi Sean, >>> >>> On Mon, 7 Sep 2020 at 09:51, Sean Anderson wrote: On 9/7/20 9:57 AM, Simon Glass wrote: > Hi Sean, > > On

Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-08 Thread Simon Glass
Hi Sean, On Tue, 8 Sep 2020 at 17:59, Sean Anderson wrote: > > On 9/8/20 7:56 PM, Simon Glass wrote: > > Hi Sean, > > > > On Mon, 7 Sep 2020 at 09:51, Sean Anderson wrote: > >> > >> On 9/7/20 9:57 AM, Simon Glass wrote: > >>> Hi Sean, > >>> > >>> On Sun, 6 Sep 2020 at 20:02, Sean Anderson

Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-08 Thread Sean Anderson
On 9/8/20 7:56 PM, Simon Glass wrote: > Hi Sean, > > On Mon, 7 Sep 2020 at 09:51, Sean Anderson wrote: >> >> On 9/7/20 9:57 AM, Simon Glass wrote: >>> Hi Sean, >>> >>> On Sun, 6 Sep 2020 at 20:02, Sean Anderson wrote: On 9/6/20 9:43 PM, Simon Glass wrote: > Hi Sean, > > On

Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-08 Thread Simon Glass
Hi Sean, On Mon, 7 Sep 2020 at 09:51, Sean Anderson wrote: > > On 9/7/20 9:57 AM, Simon Glass wrote: > > Hi Sean, > > > > On Sun, 6 Sep 2020 at 20:02, Sean Anderson wrote: > >> > >> On 9/6/20 9:43 PM, Simon Glass wrote: > >>> Hi Sean, > >>> > >>> On Tue, 1 Sep 2020 at 13:56, Sean Anderson

Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-07 Thread Sean Anderson
On 9/7/20 9:57 AM, Simon Glass wrote: > Hi Sean, > > On Sun, 6 Sep 2020 at 20:02, Sean Anderson wrote: >> >> On 9/6/20 9:43 PM, Simon Glass wrote: >>> Hi Sean, >>> >>> On Tue, 1 Sep 2020 at 13:56, Sean Anderson wrote: get_ticks does not always succeed. Sometimes it can be called

Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-07 Thread Simon Glass
Hi Sean, On Sun, 6 Sep 2020 at 20:02, Sean Anderson wrote: > > On 9/6/20 9:43 PM, Simon Glass wrote: > > Hi Sean, > > > > On Tue, 1 Sep 2020 at 13:56, Sean Anderson wrote: > >> > >> get_ticks does not always succeed. Sometimes it can be called before the > >> timer has been initialized. If it

Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-06 Thread Sean Anderson
On 9/6/20 9:43 PM, Simon Glass wrote: > Hi Sean, > > On Tue, 1 Sep 2020 at 13:56, Sean Anderson wrote: >> >> get_ticks does not always succeed. Sometimes it can be called before the >> timer has been initialized. If it does, it returns a negative errno. >> This causes the timer to appear

Re: [PATCH] time: Fix get_ticks being non-monotonic

2020-09-06 Thread Simon Glass
Hi Sean, On Tue, 1 Sep 2020 at 13:56, Sean Anderson wrote: > > get_ticks does not always succeed. Sometimes it can be called before the > timer has been initialized. If it does, it returns a negative errno. > This causes the timer to appear non-monotonic, because the value will > become much

[PATCH] time: Fix get_ticks being non-monotonic

2020-09-01 Thread Sean Anderson
get_ticks does not always succeed. Sometimes it can be called before the timer has been initialized. If it does, it returns a negative errno. This causes the timer to appear non-monotonic, because the value will become much smaller after the timer is initialized. No users of get_ticks which I