lkml.org 
[lkml]   [2017]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] clockevents: Retry programming min delta up to 10 times
On Thu, 19 Oct 2017, Matt Redfearn wrote:
> On 19/10/17 13:43, Thomas Gleixner wrote:
> > delta = 0;
> > for (i = 0; i < 10; i++) {
> > delta += dev->min_delta_ns;
> > dev->next_event = ktime_add_ns(ktime_get(), delta);
> > clc = .....
> > .....
> >
> > That makes it more likely to succeed fast. Hmm?
>
> That will set the target time to increasing multiples of min_delta_ns in the
> future, right?

Yes, but without fiddling with min_delta_ns itself.

> Sure, it should make it succeed faster - I'll make it like
> that. Are you OK with the arbitrarily chosen 10 retries?

I lost my crystalball so I have to trust yours :)

Thanks,

tglx

\
 
 \ /
  Last update: 2017-10-22 17:24    [W:1.204 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site