Home
last modified time | relevance | path

Searched hist:"82 c9f5974071a8d8f64af8e8ec7e0e45c1d3b472" (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutils/isoc/include/
H A Dmalloc.h82c9f5974071a8d8f64af8e8ec7e0e45c1d3b472 Fri Nov 11 16:20:42 UTC 2016 Volodymyr Babchuk <vlad.babchuk@gmail.com> malloc: use spinlock instead of mutex

Allocation functions are atomic (like linux kernel atomic context),
so mutexes are overkill for them. This change will allow use to use
allocator in atomic contexts like fast SMC calls or IRQ handlers.

Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/lib/libutils/isoc/
H A Dbget_malloc.c82c9f5974071a8d8f64af8e8ec7e0e45c1d3b472 Fri Nov 11 16:20:42 UTC 2016 Volodymyr Babchuk <vlad.babchuk@gmail.com> malloc: use spinlock instead of mutex

Allocation functions are atomic (like linux kernel atomic context),
so mutexes are overkill for them. This change will allow use to use
allocator in atomic contexts like fast SMC calls or IRQ handlers.

Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>