All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] usage of rtdm_task_sleep_abs
@ 2015-07-09 12:15 Johann Obermayr
  2015-07-09 14:19 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 31+ messages in thread
From: Johann Obermayr @ 2015-07-09 12:15 UTC (permalink / raw)
  To: Xenomai

Hello,

we have follow situation

u64 lrtdrv_time_of_irq_ns ;
void worker_task()
{
while(1)
     {
     rtdm_task_sleep_abs(lrtdrv_time_of_irq_ns + 950000ull, 
RTDM_TIMERMODE_ABSOLUTE);
     do_something();
     }
}

_kernel_rtdm_irq_handler()
{
     lrtdrv_time_of_irq_ns = rtdm_clock_read_monotonic();
}

the  _kernel_irq_callback() is called every 1ms.
we will , that the worker_task begin 50us before next irq

But sometime, the worker task start ~50us after irq. Why ?

Sometime we call xntbase_adjust_time to sync external RTC with internal 
clocks.
can this be a problem ?

Hardware & Software
X86 SMP Dual celeron
Linux Kernel 3.10.0
Xenomai 2.6.3

Regards
   Johann


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

end of thread, other threads:[~2015-07-17  5:25 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09 12:15 [Xenomai] usage of rtdm_task_sleep_abs Johann Obermayr
2015-07-09 14:19 ` Gilles Chanteperdrix
2015-07-09 15:43   ` Johann Obermayr
2015-07-09 15:51     ` Gilles Chanteperdrix
2015-07-10  9:34       ` Johann Obermayr
2015-07-10  9:46         ` Gilles Chanteperdrix
2015-07-10 10:43           ` Johann Obermayr
2015-07-10 10:49             ` Gilles Chanteperdrix
2015-07-13 13:41               ` Johann Obermayr
2015-07-13 14:02                 ` Gilles Chanteperdrix
2015-07-13 14:56                   ` Johann Obermayr
2015-07-13 15:24                     ` Gilles Chanteperdrix
2015-07-13 16:58                       ` Johann Obermayr
2015-07-13 17:21                         ` Gilles Chanteperdrix
2015-07-13 17:26                           ` Johann Obermayr
2015-07-13 19:58                             ` Gilles Chanteperdrix
2015-07-13 20:23                               ` Johann Obermayr
2015-07-13 20:31                                 ` Gilles Chanteperdrix
2015-07-13 20:45                                   ` Johann Obermayr
2015-07-13 20:54                                     ` Gilles Chanteperdrix
2015-07-13 21:30                                       ` Johann Obermayr
2015-07-13 21:58                                       ` Johann Obermayr
2015-07-13 22:39                                         ` Gilles Chanteperdrix
2015-07-13 23:30                                           ` Johann Obermayr
2015-07-14  0:02                                             ` Gilles Chanteperdrix
2015-07-15 21:00                                               ` Johann Obermayr
2015-07-15 21:21                                                 ` [Xenomai] ipipe trace Johann Obermayr
2015-07-16  6:30                                                 ` [Xenomai] usage of rtdm_task_sleep_abs Gilles Chanteperdrix
2015-07-16 11:46                                                   ` Johann Obermayr
2015-07-17  5:25                                                     ` Gilles Chanteperdrix
2015-07-13 20:35                                 ` Gilles Chanteperdrix

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.