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/semaphore: tick wait 0 timeout should be safe in interrupt context #15377

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

anchao
Copy link
Contributor

@anchao anchao commented Dec 29, 2024

Summary

sched/semaphore: tick wait 0 timeout should be safe in interrupt context

  1. remove up_interrupt_context() check, which should be safe in interrupt context
  2. remove sem instance check will be handle in nxsem_trywait()

Signed-off-by: chao an [email protected]

Impact

N/A

Testing

nxsem_tickwait(&sem, 0) in isr context

@github-actions github-actions bot added Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Dec 29, 2024
1. remove up_interrupt_context() check, which should be safe in interrupt context
2. remove sem instance check will be handle in nxsem_trywait()

Signed-off-by: chao an <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit dc82a29 into apache:master Dec 30, 2024
27 checks passed
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: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants