Home
last modified time | relevance | path

Searched hist:f6412fbd119a88419879d4cc69330c794d7f302e (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/include/kernel/
H A Dspinlock.hf6412fbd119a88419879d4cc69330c794d7f302e Tue Mar 12 11:25:36 UTC 2024 Etienne Carriere <etienne.carriere@foss.st.com> core: kernel: thread spin locking

Add thread_spin_lock() and thread_spin_unlock() for active spinning
locks in situation where we need an exclusive lock in a thread and
interruptible context even at the cost of a high CPU usage.

These function are intended to be used in thread context hence
they assert being executed in such a context. This is to prevent
on mistakenly spin in an atomic context which potentially leads
to a deadlock situation.

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>