incubator-nuttx/sched/irq
TaiJu Wu 68a4d3df7e spinlock: implement read writer spinlock
spinlock.c:
Implement read write spinlock.
Readers can take lock simultaneously but only one writer can take lock.

irq_spinlock.c:
Align g_irq_spin_count.
If the lock is NULL, the caller will get global lock (e.g. g_irq_spin) and spin_lock_irqsave() support nest on the same CPU.
If the CPU can write lock, it can call write_lock_irqsave() again (e.g. support nest).

Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>

Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com>
2023-10-16 08:55:01 +08:00
..
CMakeLists.txt cmake:complete missing changes during cmake reforming for sched 2023-09-08 21:20:16 +03:00
Make.defs sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
irq.h clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
irq_attach.c clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
irq_chain.c Include assert.h in necessary place 2021-06-08 13:06:08 -07:00
irq_csection.c spinlock: Rename spin_islocked to spin_is_locked 2023-10-06 20:03:19 -04:00
irq_dispatch.c clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
irq_foreach.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
irq_initialize.c add the startup process tracepoint 2023-08-19 21:50:08 +08:00
irq_procfs.c clock: replace all up_perf_xx with perf_xx 2023-10-02 16:11:43 +02:00
irq_spinlock.c spinlock: implement read writer spinlock 2023-10-16 08:55:01 +08:00
irq_unexpectedisr.c Fix compiler warnings (-Wunused-parameter) in various functions 2022-07-12 11:42:34 +08:00