Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sched: replace sync pause with async pause for nxsched_suspend #13734

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 30, 2024

  1. sched: replace sync pause with async pause for nxsched_suspend

    reason:
    In the kernel, we are planning to remove all occurrences of up_cpu_pause as one of the steps to
    simplify the implementation of critical sections. The goal is to enable spin_lock_irqsave to encapsulate critical sections,
    thereby facilitating the replacement of critical sections(big lock) with smaller spin_lock_irqsave(small lock)
    
    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
    
    Signed-off-by: hujun5 <[email protected]>
    hujun260 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c3f45ce View commit details
    Browse the repository at this point in the history