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/spin_lock: rename raw_spin_lock to spin_lock_prempt #15729

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

Conversation

hujun260
Copy link
Contributor

Summary

sched/spin_lock: rename raw_spin_lock to spin_lock_prempt

Impact

spin_lock

Testing

ci

@github-actions github-actions bot added Area: OS Components OS Components issues Size: S The size of the change in this PR is small labels Jan 30, 2025
@nuttxpr
Copy link

nuttxpr commented Jan 30, 2025

[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:

  • Insufficient Summary: While the title describes what changed, it doesn't explain why. What problem did renaming raw_spin_lock to spin_lock_prempt solve? What was the motivation? How does this change work?

  • Incomplete Impact Assessment: Simply stating "spin_lock" doesn't provide enough information. The impact section needs to explicitly address all the points listed in the requirements: impact on the user, build, hardware, documentation, security, and compatibility. Even if the answer is "NO" for most of these, it needs to be stated explicitly.

  • Inadequate Testing: "ci" is not sufficient. The testing section requires details about the build host and target environments where the changes were tested. It also requires actual testing logs from before and after the change to demonstrate the effect of the modification. Just saying "ci" doesn't prove that the change was properly tested.

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)

Copy link
Contributor

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

@@ -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);
Copy link
Contributor

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

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: OS Components OS Components issues Size: S The size of the change in this PR is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants