-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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/spin_lock: rename raw_*lock to *_notrace #15729
base: master
Are you sure you want to change the base?
Conversation
[Experimental Bot, please feedback here] No, this PR does not fully meet the NuttX requirements. While it provides a summary of the change, it lacks crucial details. Here's why:
To meet the requirements, the PR needs to be significantly expanded to provide all the necessary information. |
@@ -241,7 +241,7 @@ static inline_function void spin_lock(FAR volatile spinlock_t *lock) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move sched_note to spin_lock_prempt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
include/nuttx/spinlock.h
Outdated
@@ -456,7 +456,7 @@ irqstate_t raw_spin_lock_irqsave(FAR volatile spinlock_t *lock) | |||
irqstate_t flags; | |||
flags = up_irq_save(); | |||
|
|||
raw_spin_lock(lock); | |||
spin_lock_prempt(lock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raw_spin_lock_irqsave need change to spin_lock_irqsave_prempt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all raw_ need be renamed to _prempt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@hujun260 , can you please add more information about the proposed changes?
Can you please take a look on that? |
drivers/note/note_driver.c
Outdated
@@ -1841,7 +1841,7 @@ void sched_note_filter_mode(FAR struct note_filter_named_mode_s *oldm, | |||
irqstate_t irq_mask; | |||
FAR struct note_driver_s **driver; | |||
|
|||
irq_mask = raw_spin_lock_irqsave(&g_note_lock); | |||
irq_mask = spin_lock_irqsave_preempt(&g_note_lock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notrace not equal preempt
Signed-off-by: hujun5 <hujun5@xiaomi.com>
Summary
sched/spin_lock: rename raw_*lock to *_notrace
We made the name of spinlock more meaningful and easier to understand.
Impact
spin_lock
Testing
ci