Skip to content

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 <ben.dooks@codethink.co.uk>
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 <ben.dooks@codethink.co.uk>
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