lkml.org 
[lkml]   [2003]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] fix nanosleep() granularity bumps
Andrew Morton wrote:
> george anzinger <george@mvista.com> wrote:
>
>>The attached patch is for 2.5.65. As of this moment, the bk patch has
>>not been posted to the snapshots directory. I will wait for that to
>>update.
>
>
> Don't use the snapshots directory. Use
>
> http://www.kernel.org/pub/linux/kernel/v2.5/testing/cset/

but then I need to pull each patch ... :)

-g
>
> It is more up to date.
>
>
>>For what its worth, can someone explain how the add_timer call from
>>run_timers was causing a problem. The code looks right to me, unless
>>the caller is so nasty as to continue to do the same thing (which
>>would loop forever).
>
>
> That was the problem.
>
>
>>In this case, the simple fix is to bump the
>>base->timer_jiffies at the beginning of the loop rather than the end.
>> This would cause the new timer to be put in the next jiffie instead
>>of the current one AND it is free!
>
>
> Didn't think of that - I just ported up Andrea's fix.
>
>
>

--
George Anzinger george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [from the cache]
©2003-2011 Jasper Spaans