From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] Towards periodic mode over aperiodic timers
Date: Thu, 17 Aug 2006 15:27:56 +0200 [thread overview]
Message-ID: <44E46EDC.1000707@domain.hid> (raw)
[-- Attachment #1: Type: text/plain, Size: 1633 bytes --]
Hi,
the conflict between skins preferring aperiodic timing vs. skin
requiring periodic mode popped up once again on xenomai-help. One way
out of this, likely THE way, is to map such tick-driven skins on a
periodic timer over aperiodic mode (and drop periodic low-level support
completely at the same time).
Let's start some discussion how this can be done, specifically as Gilles
and I are already turning the xntimer subsystem upside down (almost). If
we want co-existence of high-res timing of, say, the posix skin while
the vxworks skin runs over a tick-timer, we need some kind of "context"
for timing related functions.
Simple example: xnpod_suspend_thread() expects a timeout as "xnticks",
i.e. either in nanoseconds or in ticks of the underlying periodic timer.
This depends on the global timer mode of the pod, and that's a no-go for
concurrent modes as sketched above. Rather, the thread should encode
which kind of timing mode to use, even better the threads timers.
We currently dispatch xntimer_start globally to the different timer
subsystems (if periodic mode is enabled). What about deriving the start
function from the timer itself in the future? If a timer was created as
aperiodic, things happen as usual in aperiodic mode, and the timeout are
interpreted as nanoseconds. If the timer is periodic, we interpret the
timeout in ticks and map them on a second-level timing subsystem
(probably a wheel) that itself is driven by a single periodic timer in
the first-level system (just like the host tick).
Am I heading in the right direction? Is it feasible? Any other ideas?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next reply other threads:[~2006-08-17 13:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-17 13:27 Jan Kiszka [this message]
2006-08-18 11:13 ` [Xenomai-core] Towards periodic mode over aperiodic timers Philippe Gerum
2006-08-18 12:14 ` Jan Kiszka
2006-08-18 14:32 ` Philippe Gerum
2006-08-18 14:41 ` Gilles Chanteperdrix
2006-08-18 15:05 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44E46EDC.1000707@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.