[PATCH v2 0/3] A few uclamp fixes

From: Quentin Perret
Date: Thu Jun 10 2021 - 11:14:39 EST


Hi all,

This series groups together the v2 of a few patches I orignally sent
independently from each others:

https://lore.kernel.org/r/20210609143339.1194238-1-qperret@xxxxxxxxxx
https://lore.kernel.org/r/20210609170132.1386495-1-qperret@xxxxxxxxxx
https://lore.kernel.org/r/20210609175901.1423553-1-qperret@xxxxxxxxxx

But since they're all touching uclamp-related things, I figured I might
as well group them in a series.

The first one is a pure fix, and the two others change a bit the
sched_setattr behaviour for uclamp to make it more convenient to use,
and allow to put restrictions on the per-task API.

Changes since v1:
- fixed the CAP_SYS_NICE check to handle the uclamp_{min,max} = -1
cases correctly;
- fixed commit message of UCLAMP_FLAG_IDLE patch.

Thanks,
Quentin

Quentin Perret (3):
sched: Fix UCLAMP_FLAG_IDLE setting
sched: Skip priority checks with SCHED_FLAG_KEEP_PARAMS
sched: Make uclamp changes depend on CAP_SYS_NICE

kernel/sched/core.c | 64 +++++++++++++++++++++++++++++++++++++--------
1 file changed, 53 insertions(+), 11 deletions(-)

--
2.32.0.272.g935e593368-goog