lkml.org 
[lkml]   [2013]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: [PATCH] clocksource: tcb: fix min_delta calculation
On Tue, Apr 23, 2013 at 03:11:33PM +0200, Marc Kleine-Budde wrote:
> On 04/23/2013 03:08 PM, Marc Kleine-Budde wrote:
> > The commit
> >
> > 77cc982 clocksource: use clockevents_config_and_register() where possible
> >
> > switches from manually calculating min_delta_ns (and others) and
> > clockevents_register_device() to automatic calculation via
> > clockevents_config_and_register(). During this conversation the "+ 1" in
> >
> > min_delta_ns = clockevent_delta2ns(1, &clkevt.clkevt) + 1;
> >
> > was lost. This leads to problems with schedule_delayed_work() with a delay of
> > "1". Resulting in the work not scheduled in time.
> >
> > This patch fixes the problem by increasing the min_delta to "2" ticks.
> >
> > Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
>
> The problem appears on at91sam9263. This patch successfully fixes the
> problem and applies to current linus/master (post v3.9-rc8).

Thanks for the fixing, Marc.

Acked-by: Shawn Guo <shawn.guo@linaro.org>



\
 
 \ /
  Last update: 2013-04-23 16:21    [W:0.090 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site