Home
last modified time | relevance | path

Searched hist:"3 a20c6612811bf408eca3316b49702b767803de2" (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/include/kernel/
H A Dmutex_pm_aware.h3a20c6612811bf408eca3316b49702b767803de2 Tue Mar 12 11:44:02 UTC 2024 Etienne Carriere <etienne.carriere@foss.st.com> core: kernel: mutex compliant with PM sequences

Add mutex_pm_aware_*() functions for mutex used on resources accessed
at runtime using a conventional mutex and also during low power
sequences that execute in a non-thread context.

This change defines MUTEX_PM_AWARE_INITIALIZER macro from a new
header file (mutex_pm_aware.h) instead of existing mutex.h to prevent
a circular dependency between spinlock.h (requires thread.h), thread.h
(indirectly includes mutex.h) and mutex.h (that would depend on
spinlock.h for definition of the SPINLOCK_UNLOCK macro ).

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
/optee_os/core/kernel/
H A Dmutex.c3a20c6612811bf408eca3316b49702b767803de2 Tue Mar 12 11:44:02 UTC 2024 Etienne Carriere <etienne.carriere@foss.st.com> core: kernel: mutex compliant with PM sequences

Add mutex_pm_aware_*() functions for mutex used on resources accessed
at runtime using a conventional mutex and also during low power
sequences that execute in a non-thread context.

This change defines MUTEX_PM_AWARE_INITIALIZER macro from a new
header file (mutex_pm_aware.h) instead of existing mutex.h to prevent
a circular dependency between spinlock.h (requires thread.h), thread.h
(indirectly includes mutex.h) and mutex.h (that would depend on
spinlock.h for definition of the SPINLOCK_UNLOCK macro ).

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