All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Rosenfeld Rosas <lbocseg@domain.hid>
To: xenomai@xenomai.org
Cc: Jan Kiszka <jan.kiszka@domain.hid>
Subject: Re: [Xenomai-core] Synchronising TSC and periodic timer
Date: Mon, 20 Mar 2006 16:01:07 -0300	[thread overview]
Message-ID: <200603201601.07420.lbocseg@domain.hid> (raw)
In-Reply-To: <441EC906.3050104@domain.hid>

Em Segunda 20 Mar=E7o 2006 12:23, Philippe Gerum escreveu:

>...
>It's not a matter of dealing with users always doing The Right Thing,
>but preferably preventing people from doing the wrong one.

But we then have two problems and there are tradeoffs here. In one hand we=
=20
want to avoid users from making mistakes. In the other hand we want to=20
provide a way for solving the issue that generated this thread.

A solution for the last one would be to have a function that would return a=
=20
high-precision timestamp, not necessarily in sync with xenomai's timer, sin=
ce=20
it would be used for relative time calculations, but should be in sync=20
between multiple CPUs. But this solution would rise the possibility for a=20
user to do a wrong thing. Of course, the functions should be well documente=
d=20
and states the lack of sync if it is the case. So, we have to choose betwee=
n=20
turning it possible to have such design (as the example I have last message=
)=20
or avoid people from doing the wrong thing. I would choose the first case,=
=20
since I think all rt-programmers are smarter (or should be) then the averag=
e=20
programmer. They must have attention when dealing with rt-programming. So,=
=20
reading a documentation and understanding it should not be a hard task for=
=20
them... In the other hand, if the second approach was chosen, a user wantin=
g=20
to use a rt-video interface will be forced to use the aperiodic timer for=20
having reliable timestamps...

Rodrigo.

		
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com



  reply	other threads:[~2006-03-20 19:01 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-14 20:45 [Xenomai-core] Synchronising TSC and periodic timer Jan Kiszka
2006-03-15  7:24 ` Jan Kiszka
     [not found]   ` <4417C74D.3060203@domain.hid>
2006-03-15  8:14     ` Jan Kiszka
2006-03-15 12:59   ` Philippe Gerum
2006-03-15 13:26     ` Gilles Chanteperdrix
2006-03-15 22:58       ` Philippe Gerum
2006-03-20 11:48         ` Jan Kiszka
2006-03-20 13:26           ` Philippe Gerum
2006-03-20 14:42             ` Rodrigo Rosenfeld Rosas
2006-03-20 16:51               ` Philippe Gerum
2006-03-20 19:27                 ` Rodrigo Rosenfeld Rosas
2006-03-21  0:11                   ` Jan Kiszka
2006-03-21  3:11                     ` Rodrigo Rosenfeld Rosas
2006-03-20 14:46             ` Jan Kiszka
2006-03-21 12:44               ` Philippe Gerum
2006-03-24 13:14                 ` Jan Kiszka
     [not found]             ` <200603201137.12548.rosenfeld@domain.hid>
2006-03-20 15:23               ` Philippe Gerum
2006-03-20 19:01                 ` Rodrigo Rosenfeld Rosas [this message]
2006-03-21 17:57                   ` Philippe Gerum
2006-03-15 13:34   ` Gilles Chanteperdrix
2006-03-15 16:50     ` Jan Kiszka
2006-03-16 15:26       ` Gilles Chanteperdrix
2006-03-17  1:16         ` Jan Kiszka
     [not found] <1CFEB358338412458B21FAA0D78FE86D02CABF1C@rennsmail02.eu.thmulti.com>
2006-03-15 17:20 ` Jan Kiszka

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=200603201601.07420.lbocseg@domain.hid \
    --to=lbocseg@domain.hid \
    --cc=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.