Home
last modified time | relevance | path

Searched hist:"6 c9c7a3f3763de86facb5f86b35a63dff8a38f9e" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/
H A Dhi16xx_rng.c6c9c7a3f3763de86facb5f86b35a63dff8a38f9e Mon Jul 02 16:15:12 UTC 2018 Jerome Forissier <jerome.forissier@linaro.org> drivers: hi16xx_rng: replace mutex with spinlock

The mutex in hw_get_random_byte() protects a very short section of code.
A spinlock is more lightweight and therefore better suited to the task.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>