nuttx
nuttx copied to clipboard
irq: add [enter|leave]_critical_section_nonirq
Summary
In some non-irq scenarios, we can simplify the implementation of critical sections to improve performance.
Impact
Testing
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