<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 3, 2021, 11:01 PM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" rel="noreferrer">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3/9/21 11:33 pm, Sebastian Huber wrote:<br>
> The behaviour with respect to the handling of the ticks member in the *_when()<br>
> directives was inconsistent. In all *_when() directives the ticks member is<br>
> not used to calculate the watchdog expiration time. However, the<br>
> rtems_task_wake_when() directive ignores the ticks member of the time of day<br>
> completely, unlike the rtems_timer_fire_when() and<br>
> rtems_timer_server_fire_when() directives which check that the ticks are valid<br>
> and then ignore them.<br>
> <br>
> This commit changes _TOD_Validate() to unconditionally check the ticks value.<br>
> Ignoring the value would make it more difficult to support the ticks in the<br>
> future. The watchdog implementation supports a nanoseconds resolution.<br>
> Checking the ticks in rtems_task_wake_when() may case problems for existing<br>
> applications which could now get an error status due to an invalid ticks value.<br>
> <br>
> Applications should set the ticks value to zero for future compatibility. This<br>
> recommendation needs to be added to the documentation.<br>
<br>
What happens with existing applications that do not touch this value?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Randomly different behaviour.</div><div dir="auto"><br></div><div dir="auto">Before all _when operations occurred on seconds boundaries. This will implicitly change that or return an error.</div><div dir="auto"><br></div><div dir="auto">I'm not opposed to the improved granularity but hope it doesn't burn too many users.</div><div dir="auto"><br></div><div dir="auto">--joel</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Chris<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" rel="noreferrer noreferrer" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div></div>