TaiJu Wu 23d65cb97f shced:sem: replace mutex with spinlock
The overhead of spinlok is less than mutext (mutex need to call
enter_critical section.)
After this patch, `down_write_trylock` and `down_read_trylock` can be
use in interrupt context.

The instruction is protected with mutex only one instruction so using
spinlock is better.

Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2024-03-19 18:06:12 +08:00
..
2024-03-14 22:47:55 +08:00
2023-09-08 00:59:31 +03:00
2023-10-19 21:38:45 +08:00
2023-10-19 21:38:45 +08:00
2023-10-30 18:20:22 +08:00
2024-02-21 13:29:36 -03:00
2023-11-29 02:13:19 -08:00
2024-02-02 09:03:18 -08:00
2024-02-21 13:29:36 -03:00