Home
last modified time | relevance | path

Searched hist:"9 a3248fc031ef2b79a2eca0e5f364d3a494b44bf" (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/include/drivers/
H A Dclk.h9a3248fc031ef2b79a2eca0e5f364d3a494b44bf Thu Feb 29 08:10:30 UTC 2024 Etienne Carriere <etienne.carriere@foss.st.com> drivers: clk: replace clock main spinlock with a mutex

Change clock framework lock from an interrupts masked spinning lock
to a mutex. This allows the clock framework to better handle slow
stabilizing clocks as PLLs without masking the system interrupt
which can have side effects on the REE or even the TEE.

To support clock accesses during low power state transition sequences
while non-secure world is no operating, the lock is not taken when
the execution is not in the scope of a TEE thread.

This change is not expected to impact supported platforms that currently
only access clock operation from thread contexts or atomic PM sequences.

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
/optee_os/core/drivers/clk/
H A Dclk.c9a3248fc031ef2b79a2eca0e5f364d3a494b44bf Thu Feb 29 08:10:30 UTC 2024 Etienne Carriere <etienne.carriere@foss.st.com> drivers: clk: replace clock main spinlock with a mutex

Change clock framework lock from an interrupts masked spinning lock
to a mutex. This allows the clock framework to better handle slow
stabilizing clocks as PLLs without masking the system interrupt
which can have side effects on the REE or even the TEE.

To support clock accesses during low power state transition sequences
while non-secure world is no operating, the lock is not taken when
the execution is not in the scope of a TEE thread.

This change is not expected to impact supported platforms that currently
only access clock operation from thread contexts or atomic PM sequences.

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