-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The struct sched_param passed to sched_setattr() for uclamp needs to have a valid policy and priority set. Currently, sched_data->prio is set to a special value THREAD_PRIORITY_UNCHANGED when the phase does not declare a specific priority, and sched_data->policy is set to "same". This is problematic as the kernel expects a valid policy and priority. We currently pass the special values to the kernel, which makes the syscall fail. Fix that by maintaining a valid policy and priority in thread_data_t->curr_sched_data->{policy,prio} and using it where appropriate.
- Loading branch information
1 parent
b4e5e40
commit c0c1cc9
Showing
1 changed file
with
69 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters