[PATCH 0/3] sched: Task priority related cleanups

From: Dietmar Eggemann
Date: Thu Jan 28 2021 - 08:11:58 EST


(1) Removing MAX_USER_RT_PRIO was already discussed here in April 2020:

https://lkml.kernel.org/r/20200423094403.6f1d2b8d@xxxxxxxxxxxxxxxxxx

(2) USER_PRIO() and related macros are not used anymore except in one
case for powerpc where MAX_USER_PRIO can be replaced by NICE_WIDTH.
Set_load_weight(), task_prio(), cpu_weight_nice_write_s64(),
__update_max_tr() don't use USER_PRIO() but priority - MAX_RT_PRIO.

(3) The function header of task_prio() needs an update. It looks
ancient since it mentions a prio space [-16 ... 15] for mormal
tasks. I can't figure out why this range is mentioned here? Maybe
the influence of the 'sleep-bonus interactivity' feature which was
removed by commit f3479f10c5d6 ("sched: remove the sleep-bonus
interactivity code")?

Dietmar Eggemann (3):
sched: Remove MAX_USER_RT_PRIO
sched: Remove USER_PRIO, TASK_USER_PRIO and MAX_USER_PRIO
sched/core: Update task_prio() function header

arch/powerpc/platforms/cell/spufs/sched.c | 2 +-
include/linux/sched/prio.h | 18 +-----------------
kernel/sched/core.c | 15 +++++++++------
kernel/sched/sched.h | 2 +-
4 files changed, 12 insertions(+), 25 deletions(-)

--
2.25.1