Re: Need help in figuring out how a node gets its afffinity when it is created

2020-08-14 Thread Sebastian Huber
On 14/08/2020 14:35, Richi Dubey wrote: telling me earlier that by default a node/task/thread is allowed to execute on all the processors? The thread's affinity is set to all processor when it gets initialized : https://git.rtems.org/rtems/tree/cpukit/score/src/threadinitialize.c#n217

Re: Need help in figuring out how a node gets its afffinity when it is created

2020-08-14 Thread Richi Dubey
> > telling me earlier that by default a node/task/thread is allowed to > execute on all the processors? The thread's affinity is set to all processor when it gets initialized : https://git.rtems.org/rtems/tree/cpukit/score/src/threadinitialize.c#n217 On Fri, Aug 14, 2020 at 5:58 PM Richi Dubey

Re: Need help in figuring out how a node gets its afffinity when it is created

2020-08-14 Thread Richi Dubey
Hi, Follow up of my progress to this question: I 'stepped inside' the important functions to make the observation that the flow of code is actually: - _Scheduler_strong_APA_Node_initialize _Scheduler_Node_initialize _Thread_Initialize rtems_task_create _R

Need help in figuring out how a node gets its afffinity when it is created

2020-08-14 Thread Richi Dubey
Hi, My code is failing because its logic assumed (code here ) that it would never get a node with an empty affinity (i.e. no affinity to any processor or a 0 affinity). Thi