This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix sched_get_priority_max() syscall invocation
ClosedPublic

Authored by tzussman on Apr 24 2023, 2:53 PM.

Details

Summary

Previously used SYS_sched_get_priority_min. This also updates the tests
for SCHED_RR and SCHED_FIFO to check max_priority > min_priority, rather
than >= in order to catch future breakages.

Diff Detail

Event Timeline

tzussman created this revision.Apr 24 2023, 2:53 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 24 2023, 2:53 PM
tzussman published this revision for review.Apr 24 2023, 2:55 PM
tzussman added reviewers: michaelrj, sivachandra.
michaelrj accepted this revision.Apr 24 2023, 3:20 PM

LGTM, thank you for catching this.

This revision is now accepted and ready to land.Apr 24 2023, 3:20 PM
goldstein.w.n accepted this revision.Apr 24 2023, 5:06 PM

FYI, I don't have commit permissions for the repo

That's fine, I'll land this for you.

This revision was automatically updated to reflect the committed changes.