-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
posix: sched: ensure min and max priority are schedulable #57161
posix: sched: ensure min and max priority are schedulable #57161
Conversation
dbe04ca
to
b32d85d
Compare
62ac742
to
bcbc340
Compare
Previously, there was an off-by-one error for SCHED_RR. Fixes zephyrproject-rtos#56729 Signed-off-by: Chris Friedt <[email protected]>
bcbc340
to
3cd72cb
Compare
3fb5590
to
529134f
Compare
@@ -14,16 +14,15 @@ | |||
#include <zephyr/sys/slist.h> | |||
|
|||
#include "posix_internal.h" |
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.
Just a note, but the posix_internal.h
header is unfortunately sensitive to include order 😢 - this should be fixed at some point (#57232)
Oh wow - something broke all of the tests.. it's not even rendering in GH 😅 |
|
529134f
to
f013a34
Compare
You win this time ARM toolchain... |
f013a34
to
c0f670a
Compare
@jgl-meta, @stephanosio, @keith-packard @galak - should be good to go if you're up for reviewing |
Verify that threads are actually schedulable for min and max scheduler priority for both `SCHED_RR` (preemptive) and `SCHED_FIFO` (cooperative). Fixes zephyrproject-rtos#56729 Signed-off-by: Chris Friedt <[email protected]>
The `SCHED_OTHER` scheduling priority is mandatory as part of POSIX. It must be numerically distinct from `SCHED_FIFO`, `SCHED_RR`, and `SCHED_SPORADIC`, but is implementation- defined and may behave identically to `SCHED_FIFO` or `SCHED_RR`. Signed-off-by: Chris Friedt <[email protected]>
Ensure we test `SCHED_OTHER` functionality along with other scheduling policies and priorities. Signed-off-by: Chris Friedt <[email protected]>
c0f670a
to
ad6200e
Compare
|
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.
I am unable to find anything obviously wrong with the changes in this PR.
Previously, with preemptive scheduling, minimum priority threads were not schedulable. The linked issue appears to highlight an off-by-one error as well, which I believe should be fixed here.
Also add
SCHED_OTHER
support, which is mandatory (separate commits)Fixes #56729