Spin locks held for any lengthy duration prevent interrupts and in a real time system where interrupts drive tasks this can be problematic. Add an option to assert if a spin lock is held for a duration longer than the configurable number of microseconds. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
5 lines
94 B
Plaintext
5 lines
94 B
Plaintext
CONFIG_ZTEST=y
|
|
CONFIG_SPIN_VALIDATE=y
|
|
CONFIG_SPIN_LOCK_TIME_LIMIT=1000
|
|
CONFIG_ZTEST_NEW_API=y
|