[Xenomai-core] [PATCH] fix 2.4-kernel build warning

2007-08-30 Thread Jan Kiszka
I noticed some warning during a 2.4 build of trunk which may point out unexpected side effects: In file included from pod.c:45: /usr/src/linux-2.4.35.1/include/asm/xenomai/bits/pod.h:32:1: warning: xnarch_tsc_to_ns redefined In file included from

Re: [Xenomai-core] RTDM timeout value

2007-08-30 Thread Philippe Gerum
On Wed, 2007-08-29 at 17:28 +0200, Jan Kiszka wrote: Philippe Gerum wrote: On Wed, 2007-08-29 at 16:32 +0200, Jan Kiszka wrote: Markus Osterried (BA/EDD) wrote: Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The

[Xenomai-core] [PATCH 2/2] Round up in RTDM converting ns to ticks

2007-08-30 Thread Jan Kiszka
As suggested by Markus, this patch lets RTDM round up when nanoseconds are to be converted to ticks (only relevant if RTDM runs over a periodic, tick-based timebase). This is against trunk only, I haven't yet decided what to do with 2.3.x. The rounding change may have unexpected side-effects, so

[Xenomai-core] [PATCH 1/2] Introduce xntbase_ns2ticks_ceil

2007-08-30 Thread Jan Kiszka
This introduces a round-up-variant of xntbase_ns2ticks. It is uninlined for the non-trivial case due to its text size. Its only user will be RTDM for now, but maybe the POSIX skin can use it as well. Philippe, if you accept this one, I'll handle the RTDM side myself. Jan ---