Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-17 Thread Jan Kiszka
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: >> Jan Kiszka wrote: >> > Gilles Chanteperdrix wrote: >> > > Jan Kiszka wrote: >> > > > > I am thinking again about this patch: some handlers need to be >> > > > > rewritten, for example the posix timers handler, because the >> handler >> > >

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-17 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Gilles Chanteperdrix wrote: > > > Jan Kiszka wrote: > > > > > I am thinking again about this patch: some handlers need to be > > > > > rewritten, for example the posix timers handler, because the handler > > > > > relies on the fact that i

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-17 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > > > > I am thinking again about this patch: some handlers need to be > > > > rewritten, for example the posix timers handler, because the handler > > > > relies on the fact that it is called for every timer expiry to co

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-17 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > > I am thinking again about this patch: some handlers need to be > > > rewritten, for example the posix timers handler, because the handler > > > relies on the fact that it is called for every timer expiry to compute > > > the overruns count.

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-16 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > > I am thinking again about this patch: some handlers need to be > > rewritten, for example the posix timers handler, because the handler > > relies on the fact that it is called for every timer expiry to compute > > the overruns count. So maybe this patch should come with t

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-16 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > Gilles Chanteperdrix wrote: > > > Jan Kiszka wrote: > > > > A simple patch, just like suggested by Gilles, to avoid looping over > > > > periodic xntimer handlers in case of overruns. > > > > > > > > It saves the current TSC on loop ent

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-16 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > Gilles Chanteperdrix wrote: > > Jan Kiszka wrote: > > > A simple patch, just like suggested by Gilles, to avoid looping over > > > periodic xntimer handlers in case of overruns. > > > > > > It saves the current TSC on loop entry and uses this value later when > > >

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-03 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: > > A simple patch, just like suggested by Gilles, to avoid looping over > > periodic xntimer handlers in case of overruns. > > > > It saves the current TSC on loop entry and uses this value later when > > forwarding the timer. Is is the overhea

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-03 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > A simple patch, just like suggested by Gilles, to avoid looping over > periodic xntimer handlers in case of overruns. > > It saves the current TSC on loop entry and uses this value later when > forwarding the timer. Is is the overhead of re-reading the TSC on all > archs

Re: [Xenomai-core] [RFC][PATCH 4/4] shorten overrun loops of periodic timers

2006-08-03 Thread Philippe Gerum
On Thu, 2006-08-03 at 09:01 +0200, Jan Kiszka wrote: > A simple patch, just like suggested by Gilles, to avoid looping over > periodic xntimer handlers in case of overruns. > > It saves the current TSC on loop entry and uses this value later when > forwarding the timer. Is is the overhead of re-re