Skip to content

sched: Collect the bits about priority into a new header file, include/linux/sched/prio.h.

Dongsheng Yang lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 11 repliesSuperseded

Changes in v2 from the cover letter

* leave the task_prio() in kernel/sched/core.c
* remove macro TASK_NICE and implement it as static inline function in include/linux/sched.h.
* remove #ifndef when include prio.h.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sched: Move the priority specific bits into a new header file.include/linux/sched.h include/linux/sched/prio.h include/linux/sched/rt.h+25 -180 replies
2/3sched: Expose some macros related with priority.include/linux/sched/prio.h kernel/sched/sched.h+18 -180 replies
3/3sched: Implement task_nice as static inline function.include/linux/sched.h include/linux/sched/prio.h kernel/sched/core.c +1 more+19 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/3 V2] sched: Collect the bits about priority into a new header file, include/linux/sched/prio.h.

Hi Peter,
This patchset is version 2 about priority of sched. Please help to review.

Sorry for the late update about it, coming back from vacation.

v2:
* leave the task_prio() in kernel/sched/core.c
* remove macro TASK_NICE and implement it as static inline function in include/linux/sched.h.
* remove #ifndef when include prio.h.

Dongsheng Yang (3):
sched: Move the priority specific bits into a new header file.
sched: Expose some macros related with priority.
sched: Implement task_nice as static inline function.

 include/linux/sched.h      | 12 +++++++++++-
 include/linux/sched/prio.h | 40 ++++++++++++++++++++++++++++++++++++++++
 include/linux/sched/rt.h   | 19 +------------------
 kernel/sched/core.c        | 26 +++++++-------------------
 kernel/sched/cputime.c     |  4 ++--
 kernel/sched/sched.h       | 18 ------------------
 6 files changed, 61 insertions(+), 58 deletions(-)
 create mode 100644 include/linux/sched/prio.h
Signature · 1 line
1.8.2.1