Skip to content

sched: schedule/preempt optimizations and cleanups

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sched: Pull resched loop to __schedule() callerskernel/sched/core.c+7 -40 replies
2/4sched: Use traced preempt count operations to toggle PREEMPT_ACTIVEkernel/sched/core.c+6 -65 replies
3/4sched: Pull preemption disablement to __schedule() callerkernel/sched/core.c+8 -105 replies
4/4sched: Account PREEMPT_ACTIVE context as atomicinclude/linux/preempt_mask.h kernel/sched/core.c+8 -82 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] sched: schedule/preempt optimizations and cleanups

Hey,

This series is based on suggestions from Linus. I posted a previous version one month ago then Linus suggested more improvements. Here is the following iteration.

The last patch suggests to (ab)use PREEMPT_ACTIVE to disable preemption on schedule(). It's optional as it's a possibily controversial cleanup.

Thanks.

Frederic Weisbecker (4):
sched: Pull resched loop to __schedule() callers
sched: Use traced preempt count operations to toggle PREEMPT_ACTIVE
sched: Pull preemption disablement to __schedule() caller
sched: Account PREEMPT_ACTIVE context as atomic

 include/linux/preempt_mask.h |  4 ++--
 kernel/sched/core.c          | 29 +++++++++++++++--------------
 2 files changed, 17 insertions(+), 16 deletions(-)
Signature · 1 line
2.1.4