From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH-STACK] Synchronised timebases and more
Date: Mon, 18 Jun 2007 10:27:31 +0200 [thread overview]
Message-ID: <467641F3.3010308@domain.hid> (raw)
In-Reply-To: <467639BE.30504@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1927 bytes --]
Jan Kiszka wrote:
> ...
> The answer I found is to synchronise all time bases as good as possible.
> That means if one base changes its wall clock offset, all others need to
> be adjusted as well. At this chance, we would also implement
> synchronisation of the time bases on the system clock when they get
> started. Because skins may work with different type width to represent
> time, relative changes have to be applied, i.e. the core API changes
> from xntbase_set_time(new_time) to xntbase_adjust_time(relative_change).
> The patch (global-wallclock.patch) finally touches more parts than I was
> first hoping. Here is the full list:
>
> - synchronise slave time bases on the master on xntbase_start
> - xntbase_set_time -> xntbase_adjust_time, fixing all time bases
> currently registered
> - make xnarch_start_timer return the nanos since the last host tick
> (only ia64 affected, all others return 0 anyway, causing one tick
> off when synchronising on system time -- but this fiddling becomes
> pointless on the long term due to better clocksourses on all archs)
> - adapt vrtx, vxworks, and psos+ skin to new scheme, fixing sc_sclock
> at this chance
> - make xnarch_get_sys_time internal, no skin should (need to) touch
> this anymore
Forgot to mention two further aspects:
- The semantic of XNTBSET was kept time base-local. But I wonder if
this flag is still required. Unless it was introduced to emulated
some special RTOS behaviour, we now have the time bases automatically
set on startup. Comments welcome.
- This patch is a nice foundation for the stuff I have in mind post 2.4
release: an infrastructure to synchronise the Xenomai clock on
arbitrary external sources like local ToD, RTCs, sync packets sent
over CAN (CANopen...), Ethernet (RTnet, IEEE1588, ...), or whatever
media (poor-man's nullmodem links...)
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-06-18 8:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-18 7:52 [Xenomai-core] [PATCH-STACK] Synchronised timebases and more Jan Kiszka
2007-06-18 8:27 ` Jan Kiszka [this message]
2007-06-20 16:42 ` Philippe Gerum
2007-06-20 17:08 ` Jan Kiszka
2007-06-20 22:29 ` Philippe Gerum
2007-06-21 7:58 ` Jan Kiszka
2007-06-21 9:06 ` Philippe Gerum
2007-06-21 9:17 ` Philippe Gerum
2007-06-21 9:21 ` Jan Kiszka
2007-06-21 9:39 ` Philippe Gerum
2007-06-21 18:10 ` Gilles Chanteperdrix
2007-06-20 17:53 ` Gilles Chanteperdrix
2007-06-20 18:02 ` Gilles Chanteperdrix
2007-06-20 18:52 ` Jan Kiszka
2007-06-20 20:58 ` Gilles Chanteperdrix
2007-06-20 21:57 ` Jan Kiszka
2007-06-20 22:40 ` Philippe Gerum
2007-06-20 22:45 ` 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=467641F3.3010308@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.