lkml.org 
[lkml]   [2008]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Question: queuing timer interrupts
From
Date
soohoon lee <soohoon_lee@yahoo.com> writes:

> There is a system and sometimes it should unavoidably block interrupts for critical jobs for couple of 10ms so will lost timer ticks.
> But keeping the wall clock is also critical.
> I thought about two solutions.
> 1. update wall clock when OS gets out of the critical section.
> 2. Add a hardware to count lost timer ticks, it's easy for this system.
> So when the OS is able to process interrupts again, the hardware generates timer interrupts back to back to compensate lost ticks.

noidlehz should handle this all correctly already. You could just
treat your critical section like the idle loop and calling all the
timer hooks around it. The only subtle issue is that the delay should
not exceed the capability of the platform timer to tick without
overflow.

-Andi



\
 
 \ /
  Last update: 2008-07-22 07:53    [W:0.072 / U:1.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site