mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2026-07-03 14:18:43 +00:00
Add a non-blocking `spin_trylock()` function to the existing spinlock
implementation. This API attempts to acquire the lock and returns `1`
on success or `0` if the lock is already held. It enables conditional
locking scenarios where blocking is undesirable.
Change-Id: I9483206952d1a34dc245ebf69e80c3645b658946
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
(cherry picked from commit 86822f2485)