zyfeier commented on PR #21804: URL: https://github.com/apache/nuttx/pull/21804#issuecomment-7092108964
@GUIDINGLI @acassis I reworked this PR, please take another look. The previous version made every access to `tcb->flags` atomic, which added atomic read-modify-writes to the system call, signal delivery and semaphore wait paths, also on UP builds. This version moves the bits that only the task itself writes into `tcb->exec_flags`, and the scheduling policy into `tcb->sched_policy`, both accessed with plain loads and stores. Only the bits written from more than one CPU stay in `tcb->flags` and become atomic. The hot paths now have the same atomic and barrier instructions as master; the details and measurements are in the description. It is rebased on master 960459c6503. The LTO change for verdin-mx8mp:rpmsg was dropped because #22066 is merged. -- 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]
