-
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: implement sched_rr_get_interval() #68316
posix: implement sched_rr_get_interval() #68316
Conversation
d05fcea
to
ce6ce50
Compare
include/zephyr/posix/sched.h
Outdated
@@ -10,6 +10,8 @@ | |||
|
|||
#include "posix_types.h" | |||
|
|||
#include "time.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.
I think this should be grouped with the posix_types.h
above
ce6ce50
to
b47eac4
Compare
I will rebase tonight, my other PR has been merged so maybe the conflic is from that. |
b47eac4
to
f280e31
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.
Just a minor include nit, otherwise LGTM
include/zephyr/posix/sched.h
Outdated
@@ -9,6 +9,7 @@ | |||
#include <zephyr/kernel.h> | |||
|
|||
#include "posix_types.h" | |||
#include "time.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.
This is a standard ISO C header file, so it should have angle brackets and have a newline after private headers (sorry, this is not yet built into .clang-format)
#include "time.h" | |
#include <time.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.
Noted, thank you !
f280e31
to
52d61b5
Compare
Implement `sched_rr_get_interval()` POSIX APIs as a part of PSE53 `_POSIX_PRIORITY_SCHEDULING` option group. Functions is actually placeholders and just return `ENOSYS` since Zephyr does not yet support processes or process scheduling. signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
`sched_rr_get_interval()` is now implemented,mark it so. signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
Implement tests for `sched_rr_get_interval()` . Function is actually placeholders and just return `ENOSYS` since Zephyr does not yet support processes or process scheduling. signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
52d61b5
to
f16e0f3
Compare
Rebase. |
This is part of the See #51211 (RFC #51211).
sched_rr_get_interval() is required as part of _POSIX_PRIORITY_SCHEDULING Option Group.
For more information, please refer to https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_rr_get_interval.html
Function is actually placeholders and just return
ENOSYS
since Zephyr does not yet support processes or process scheduling.
Fixes #66961