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

Bjdooks/fixes 20feb2024 v2 #132

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bjdooks-ct
Copy link

Some bugfixes on error return from calibration, and the wrong error code from sched_setattr.
Fix a indentation issue on rtapp_sleep

The sched_setattr() call returns -1 and sets errno to the error code
for the failure. Print errno to provide more info than just -1 for
the failure.

Signed-off-by: Ben Dooks <[email protected]>
If calibrate_cpu_cycles() fails, then it returns 0 and this value
is used to calculate other information and thus will fail with
an divide-by-zero error further along.

Exit out here if it returns 0.
The rtapp_sleep case is not correctly intended in the
run_event code. Fix this annoyance by indeting it correctly.

Signed-off-by: Ben Dooks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant