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

Switch wifi tasks at priority level 3 #3165

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

bugadani
Copy link
Contributor

Alternative to #3164 because ESP32 uses Software0 for some bluetooth-related things. Closes #3160 although not by switching tasks at level 1, but at level 3. The scheduler tick is ticking at level 1, though, so the scheduler is technically running at priority level 1, allowing us to use prio-limited locks at level 1 safely, unless someone calls yield_task in such a lock.

The downside of this PR is that the timer interrupt is now triggering a software interrupt to switch tasks, which is probably slightly less performant than before.

@bugadani bugadani added the skip-changelog No changelog modification needed label Feb 21, 2025
@bjoernQ
Copy link
Contributor

bjoernQ commented Feb 21, 2025

Unsurprisingly I see slightly worse performance running wifi_embassy_bench but this might benefit from possible future enhancements of the scheduler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esp-wifi: Scheduler not working at priority level 1 on Xtensa
2 participants