Files
rt-thread/libcpu
GuEe-GUI 2a4e78d232 [libcpu][risc-v] Fix ticket spinlock stalls under SMP contention
Eight-core boot on SpacemiT K1 could stall with one CPU in the
unlock LR/SC loop, two CPUs allocating tickets, and the remaining
CPUs waiting for the scheduler lock.

Replace LR/SC ticket allocation with amoadd.w.aqrl and release the
lock with a halfword owner update. Order critical-section accesses
after acquiring ownership and before releasing it.

Verified eight-core boot on K1 with temporary diagnostics and
reservation-clearing changes removed.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
2026-10-22 17:59:29 +08:00
..
2026-10-17 09:44:26 +08:00