nuttx/sched/semaphore
hujun5 1c5a0bf6cc irq: add [enter|leave]_critical_section_nonirq
Configuring NuttX and compile:
$ ./tools/configure.sh -l qemu-armv8a:nsh_smp
$ make
Running with qemu
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
   -machine virt,virtualization=on,gic-version=3 \
   -net none -chardev stdio,id=con,mux=on -serial chardev:con \
   -mon chardev=con,mode=readline -kernel ./nuttx

reason:
In some non-irq scenarios, we can simplify
the implementation of critical sections to improve performance.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-09-08 17:50:51 +08:00
..
CMakeLists.txt spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
Make.defs spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
sem_clockwait.c irq: add [enter|leave]_critical_section_nonirq 2024-09-08 17:50:51 +08:00
sem_destroy.c
sem_holder.c
sem_initialize.c
sem_post.c
sem_recover.c
sem_reset.c
sem_rw.c shced:sem: replace mutex with spinlock 2024-03-19 18:06:12 +08:00
sem_setprotocol.c
sem_tickwait.c irq: add [enter|leave]_critical_section_nonirq 2024-09-08 17:50:51 +08:00
sem_timedwait.c
sem_timeout.c
sem_trywait.c
sem_wait.c irq: add [enter|leave]_critical_section_nonirq 2024-09-08 17:50:51 +08:00
sem_waitirq.c
semaphore.h