How to schedule a node on a different processor?

Richi Dubey richidubey at gmail.com
Tue Aug 18 15:21:02 UTC 2020


Hi,

This question is wrt the use of Scheduler_SMP_Preempt here
<https://github.com/richidubey/rtems/blob/b94696c00c32bd9e5a74587af27a263794575919/cpukit/score/src/schedulerstrongapa.c#L245>.
This function eventually calls Allocate_Processor and while tracing with
gdb, everything is going as I planned, i.e. the correct node is getting
preempted and the caller to it is getting allocated the CPU. But, the test
fails here
<https://github.com/richidubey/rtems/blob/b94696c00c32bd9e5a74587af27a263794575919/testsuites/smptests/smpstrongapa01/init.c#L182>,
because eventually the heir is not changed.

Do I have to explicitly change the heir when I am trying to schedule a
node/thread on a different processor? Is doing SMP_Preempt not enough?
Please suggest.

Thanks,
Richi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200818/483b0e1e/attachment.html>


More information about the devel mailing list