<div dir="ltr">I would. Thank you.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 5, 2020 at 10:24 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 04/08/2020 16:23, Richi Dubey wrote:<br>
> Thanks.<br>
> <br>
> So for the code:<br>
> --------------------------------------------------------------------------------------------------<br>
> for (i = 0; i < CPU_COUNT; ++i) {<br>
> const Per_CPU_Control *c;<br>
> const Thread_Control *h;<br>
> <br>
> c = _Per_CPU_Get_by_index(CPU_COUNT - 1 - i);<br>
> h = c->heir;<br>
> <br>
> sc = rtems_task_suspend(h->Object.id);<br>
> rtems_test_assert(sc == RTEMS_SUCCESSFUL);<br>
> }<br>
> --------------------------------------------------------------------------------------------------<br>
> would it have the same effect if we replace all this by :<br>
> <br>
> for (i = CPU_COUNT -1 ; i >=0 ; --i) {<br>
> sc = rtems_task_suspend(ctx->task_ids[i]);<br>
> rtems_test_assert(sc == RTEMS_SUCCESSFUL);<br>
> }<br>
> --------------------------------------------------------------------------------------------------<br>
> <br>
> Please let me know.<br>
<br>
No, it would not have the same effect in general. You can try to change <br>
it and see if the test fails or not.<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : +49 89 189 47 41-16<br>
Fax : +49 89 189 47 41-09<br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</blockquote></div>