casaroli commented on code in PR #21342:
URL: https://github.com/apache/nuttx/pull/21342#discussion_r4522260006
##########
sched/Kconfig:
##########
@@ -298,6 +298,47 @@ config RW_SPINLOCK
Reader can take read lock simultaneously and only one writer
can take write lock.
+config SPINLOCK_INLINE
+ bool "Inline spinlock helpers"
+ default !DEFAULT_SMALL
+ ---help---
+ Inline spinlock helper functions to improve performance.
Disable
+ this option to emit callable non-inline versions and reduce
+ header-inline code growth.
+
+choice
+ prompt "Spinlock wait policy"
+ default SPINWAIT_PM if PM
+ default SPINWAIT_RELAX
+
+config SPINWAIT_RELAX
+ bool "Relax hint wait"
+ ---help---
+ Spinlock waiters poll the lock with the architecture relax
+ hint (PAUSE on x86_64, YIELD on aarch64) and unlocking sends
Review Comment:
The help names "PAUSE on x86_64, YIELD on aarch64", but d7a18e71c4b also
makes armv7-a and armv7-r wait with YIELD.
Fix: say "PAUSE on x86_64, YIELD on arm64, armv7-a and armv7-r".
--
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]