Add MAX_NICE, MIN_NICE and NICE_WIDTH macros in prio.h.
Status from this message: I queued it; I wasn't convinced but people seem to like it, which is
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
Reviews trailers per patch
2 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Josh Triplett | Tejun Heo |
|---|---|---|
| 1/9 | ||
| 2/9 | ||
| 3/9 | ||
| 4/9 | ||
| 5/9 | R-b | |
| 6/9 | ||
| 7/9 | ||
| 8/9 | A-b | |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/9] Add MAX_NICE, MIN_NICE and NICE_WIDTH macros in prio.h.
Hi Peter,
There are lots of hardcoding of -20 and 19 in kernel to represent
minimum and maximum of nice value currently. This patch set define three macros in prio.h and replace some of the hardcoding with them.
Please help to take a look at it, thanx :)
Dongsheng Yang (9):
sched: Prio: Use DEFAULT_PRIO to define NICE_TO_PRIO and PRIO_TO_NICE.
sched: prio: Add 3 macros of MAX_NICE, MIN_NICE and NICE_WIDTH in
prio.h.
sched: prio: Use NICE_WIDTH macro to avoid using of hard coding of 40
and 20 in prio.h.
sched: prio: Add spaces before and after operator of '-'.
rcu: Use MAX_NICE to replace hard coding of 19.
sched: Replace hardcoding of -20 and 19 with MIN_NICE and MAX_NICE.
sys: Replace hardcoding of -20 and 19 with MIN_NICE and MAX_NICE.
workqueue: Replace hardcoding of -20 and 19 with MIN_NICE and
MAX_NICE.
trace: Replace hardcoding of 19 with MAX_NICE.
include/linux/sched/prio.h | 14 +++++++++----- kernel/rcu/torture.c | 8 ++++---- kernel/sched/auto_group.c | 2 +- kernel/sched/core.c | 12 ++++++------ kernel/sys.c | 8 ++++---- kernel/trace/ring_buffer_benchmark.c | 6 +++--- kernel/workqueue.c | 2 +- 7 files changed, 28 insertions(+), 24 deletions(-)
Signature · 1 line
1.8.2.1