All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Strange behaviour after calling clock_settime
@ 2018-03-14 10:42 Julien Blanc
  2018-03-14 11:00 ` Philippe Gerum
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Blanc @ 2018-03-14 10:42 UTC (permalink / raw)
  To: xenomai

Hi,

The current xenomai documentation states that it is allowed to call
clock_settime with CLOCK_REALTIME parameter to set the value of the
xenomai realtime clock. On our board, the value at bootup is always 0
(so, epoch), despite the hardware clock being correctly set.

However, we experience bad behaviour when doing so. Notably, alchemy
condition variables seems to no longer work. Resetting the xenomai
CLOCK_REALTIME to the initial value puts things back in order.

Is it a known issue ? Are we doing something wrong ? Or is it just
better to let the xenomai CLOCK_REALTIME live its life, considering it
as a CLOCK_MONOTONIC, and rely to CLOCK_HOST_REALTIME whenever we need
real dates ?

Regards

Julien


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-14 11:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-14 10:42 [Xenomai] Strange behaviour after calling clock_settime Julien Blanc
2018-03-14 11:00 ` Philippe Gerum
2018-03-14 11:19   ` Julien Blanc

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.