pussuw opened a new pull request, #6050:
URL: https://github.com/apache/incubator-nuttx/pull/6050

   Hartid and cpuindex are not the same thing. Hartid is needed regardless
   of SMP, for external interrupt handling etc.
   
   SMP needs cpuindex which might not be index == hartid, so both are
   needed. IMO it is clearer to provide separate API for both.
   
   Currently the implementation of up_cpu_index is done a bit lazily,
   because it assumes hartid == cpu index, but this is not 100% accurate,
   so it is still missing some logic.
   
   ## Summary
   Separates SMP cpuindex and mhartid
   ## Impact
   De-couples two unrelated things from each other
   ## Testing
   MPFS icicle:knsh
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to