lkml.org 
[lkml]   [2005]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: RT and timers
From
Date
On Thu, 2005-06-09 at 18:36 -0700, George Anzinger wrote:
> > I'm mainly concerned because that loop never breaks . It seems like there
> > could be a condition when the loop never stops. For instance , a very
> > accurate timer interrupt, and timers that continually reset themselves.
>
> As I recall, it is not possible to put a timer in the list for the current time.
> It will be put in the next tick slot or, with HRT, be passed to the hrt code.
> The only case this might fail is if a kernel hrt user restarts his timer for
> "now" or prior to "now". This is bad and hard to correct. The posix-timers
> code does not restart timers until the signal is delivered and then from the
> user thread, not the softirq context.
>
> Did I miss something here?

No, you're right. Expired timers are inserted into the next slot, so the
loop is not able to starve itself.


tglx


-
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-06-10 10:33    [W:0.121 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site