mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Feature: implement ticket spinlock
test config: ./tools/configure.sh -l qemu-armv8a:nsh_smp Pass ostest No matter big-endian or little-endian, ticket spinlock only check the next and the owner is equal or not. If they are equal, it means there is a task hold the lock or lock is free. Signed-off-by: TaiJu Wu <tjwu1217@gmail.com> Co-authored-by: Xiang Xiao <xiaoxiang781216@gmail.com>
This commit is contained in:
@@ -40,4 +40,8 @@ if(CONFIG_SPINLOCK)
|
||||
list(APPEND CSRCS spinlock.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_TICKET_SPINLOCK)
|
||||
list(APPEND CSRCS spinlock.c)
|
||||
endif()
|
||||
|
||||
target_sources(sched PRIVATE ${CSRCS})
|
||||
|
||||
Reference in New Issue
Block a user