[PATCH] smpschededf02: Document reset() function

Richi Dubey richidubey at gmail.com
Tue Aug 4 14:23:51 UTC 2020


Thanks.

So for the code:
--------------------------------------------------------------------------------------------------
  for (i = 0; i < CPU_COUNT; ++i) {
    const Per_CPU_Control *c;
    const Thread_Control *h;

    c = _Per_CPU_Get_by_index(CPU_COUNT - 1 - i);
    h = c->heir;

    sc = rtems_task_suspend(h->Object.id);
    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
  }
--------------------------------------------------------------------------------------------------
 would it have the same effect if we replace all this by :

  for (i = CPU_COUNT -1 ; i >=0 ; --i) {
    sc = rtems_task_suspend(ctx->task_ids[i]);
    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
  }
--------------------------------------------------------------------------------------------------

Please let me know.


On Tue, Aug 4, 2020 at 7:17 PM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> On 04/08/2020 14:25, Richi Dubey wrote:
>
> > This helps. Thank you.
> If things are still unclear, don't hesitate to ask again. Your questions
> are really helpful to improve the documentation.
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200804/d9ea669f/attachment.html>


More information about the devel mailing list