Apache NuttX is a mature, real-time embedded operating system (RTOS)
Go to file
hujun5 a4aad284eb sched: wqueue: Remove sched_[un]lock from kwork_inherit.c
purpose:
1 sched_lock is very time-consuming, and reducing its invocations can improve performance.
2 sched_lock is prone to misuse, and narrowing its scope of use is to prevent people from referencing incorrect code and using it

test:
We can use qemu for testing.
compiling
make distclean -j20; ./tools/configure.sh -l qemu-armv8a:nsh_smp ;make -j20
running
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

We have also tested this patch on other ARM hardware platforms.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-05-01 11:08:07 +08:00
.github build(deps): bump github/super-linter from 5 to 6 2024-04-29 17:34:32 +08:00
Documentation esp32[c3|h2|c6]: Add support to TWAI/CANBus controller 2024-04-30 10:03:22 +08:00
arch imxrt:Add DMA preflight Support 2024-04-30 15:48:20 -03:00
audio Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
binfmt all: Fix accessing uninitialized local variables 2024-04-04 11:51:54 +08:00
boards arch/mx8mp: add rptun/rpmsg client support 2024-04-30 11:30:02 -03:00
cmake cmake:bugfix generate config.h contain ; characters will be handled incorrectly 2024-04-29 11:14:48 -03:00
crypto sched: explicitly select the cpuload clock source configuration 2023-11-01 09:27:56 +08:00
drivers driver: There is no need to use sched_[un]lock 2024-04-30 11:35:13 -03:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs procfs/meminfo: fit line width in 80 chars 2024-04-24 16:33:32 +08:00
graphics video/vnc: add vnc_fb_register 2024-04-12 17:42:49 +08:00
include libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
libs libc/string: replace __builtin_ffsl with inline function 2024-04-30 19:47:08 +08:00
mm mm/arch: userspace device mapping support 2024-04-26 12:11:35 +08:00
net tcp: decouple TCP_NODELAY and NET_TCP_KEEPALIVE 2024-04-29 17:45:14 +08:00
openamp openamp/libmetal.cmake: sync with libmetal.defs 2024-03-28 16:07:49 +08:00
pass1
sched sched: wqueue: Remove sched_[un]lock from kwork_inherit.c 2024-05-01 11:08:07 +08:00
syscall build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
tools Add basic support for locales in order to C++ streams to build and work for simple cases (POSIX / C locale). 2024-04-29 17:34:10 +08:00
video build: add initial cmake build system 2023-07-08 13:50:48 +08:00
wireless Remove the back slash from long literal string 2024-02-19 16:43:15 +01:00
.asf.yaml
.gitignore fs/vfat: Fix typo in the macro DIRSEC_BYTENDX 2024-02-03 12:46:08 -03:00
.yamllint
AUTHORS AUTHORS: add Tomek CEDRO to the list 2023-03-07 14:15:55 +01:00
CMakeLists.txt cmake:enhance set_source_files_properties for NuttX CMake module 2024-04-18 14:57:58 -03:00
CONTRIBUTING.md Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
INVIOLABLES.md
Kconfig rpmsg/debug: add debug configs and macros 2024-02-15 19:53:55 -08:00
LICENSE RP2040: Implement board_uniqueid() 2024-03-17 10:00:25 -03:00
Makefile
NOTICE
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

README.md

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.