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

scheduler time in quantum underflows, leading to negative values #6977

Closed
derekbruening opened this issue Sep 10, 2024 · 0 comments · Fixed by #6973
Closed

scheduler time in quantum underflows, leading to negative values #6977

derekbruening opened this issue Sep 10, 2024 · 0 comments · Fixed by #6973
Assignees

Comments

@derekbruening
Copy link
Contributor

In testing my per-core-runqueue #6938 implementation I noticed in the logs that the current time in quantum was going negative. I tracked it down to what looks like both a voluntary switch and preempt at the same time. There is code that corrects the overshoot for the quantum due to waiting for the next instruction boundary, but its conditions do the wrong thing for the simultaneous triggers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant