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

spinlock+sched_lock #14578

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

spinlock+sched_lock #14578

wants to merge 3 commits into from

Commits on Nov 4, 2024

  1. sched: remove csection and reduce the interrupt disabling time in sch…

    …ed_[un]lock
    
    reason:
    1 Accelerated the implementation of sched_lock, remove enter_critical_section in sched_lock and
      only enter_critical_section when task scheduling is required.
    2 we add sched_lock_wo_note/sched_unlock_wo_note and it does not perform instrumentation logic
    
    Signed-off-by: hujun5 <[email protected]>
    hujun260 committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    48ce014 View commit details
    Browse the repository at this point in the history
  2. spinlock: improve spin_lock_irqsave_wo_note realtime performance

    reason:
    allow the spin_lock_irqsave_wo_note to respond interrupts during the test set loop and improve RT performance
    
    Signed-off-by: hujun5 <[email protected]>
    hujun260 committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    1dd5b37 View commit details
    Browse the repository at this point in the history
  3. spinlock: add sched_lock to spin_lock_irqsave_wo_note

    reason:
    We aim to replace big locks with smaller ones. So we will use spin_lock_irqsave extensively to
    replace enter_critical_section in the subsequent process. We imitate the implementation of Linux
    by adding sched_lock to spin_lock_irqsave in order to address scenarios where sem_post occurs
    within spin_lock_irqsave, which can lead to spinlock failures and deadlocks.
    
    Signed-off-by: hujun5 <[email protected]>
    hujun260 committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    175819e View commit details
    Browse the repository at this point in the history