All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Handling interrupt - jitter
@ 2008-04-18 14:33 Bosko Radivojevic
  2008-04-18 14:48 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 10+ messages in thread
From: Bosko Radivojevic @ 2008-04-18 14:33 UTC (permalink / raw)
  To: xenomai-help

Hi,

I'm having (from my perspective) too big jitter on handling
interrupts. System is: ARM9, AT91SAM9260, Kernel 2.6.20.21, Adeos
1.8-03, Xenomai-2.4.2, interrupt is generated every 1ms, externally.
Interrupt source (ET1200) is connected to IRQ1 pin (PC15). I'm using
native skin from user space. Usually, handler 'reacts' after ~110us,
but, worst case delay is around 250us! Is this performance
normal/expected on my platform? Why the difference is so huge?

Is there anything I can do to get better results (with this hw:)?

Code looks like the example provided with Xenomai:

void tmng ()
{
   for (;;) {
      err = rt_intr_wait(&intr_desc,TM_INFINITE);
      if (err > 0) {
         [..]
      } else {
         [..]
      }
      rt_intr_enable (&intr_desc);
   }
}
main ()
{

  err = rt_intr_create(&intr_desc, "ET1200_sync", IRQ_NUMBER, 0);
  err = rt_task_create(&task_desc, "tmng", 0, 99, T_JOINABLE);

  rt_intr_enable (&intr_desc);

  rt_task_start(&task_desc,&tmng,NULL);
}

Thanks


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-04-21 14:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-18 14:33 [Xenomai-help] Handling interrupt - jitter Bosko Radivojevic
2008-04-18 14:48 ` Gilles Chanteperdrix
2008-04-18 15:08   ` Bosko Radivojevic
2008-04-18 15:21     ` Gilles Chanteperdrix
2008-04-18 16:01   ` Wolfgang Grandegger
2008-04-21 10:07   ` Bosko Radivojevic
2008-04-21 14:22     ` Gilles Chanteperdrix
2008-04-21 14:36       ` Philippe Gerum
2008-04-21 14:38         ` Gilles Chanteperdrix
2008-04-21 14:48           ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.