Re: [PATCH v6 01/16] sched/core: Allow sched_setattr() to use the current policy

2019-01-25 Thread Alessio Balsini
Hello Patrick, What do you think about the following minor changes: On Tue, Jan 15, 2019 at 10:14:58AM +, Patrick Bellasi wrote: > /* SCHED_ISO: reserved but not implemented yet */ > #define SCHED_IDLE 5 > #define SCHED_DEADLINE 6 > +/* Must be the last entry: used

[PATCH v6 01/16] sched/core: Allow sched_setattr() to use the current policy

2019-01-15 Thread Patrick Bellasi
The sched_setattr() syscall mandates that a policy is always specified. This requires to always know which policy a task will have when attributes are configured and it makes it impossible to add more generic task attributes valid across different scheduling policies. Reading the policy before sett