Skip to content

RFC preempt: A few headers cleanups and preempt_schedule*() optimizations

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7preempt: Merge preempt_mask.h into preempt.harch/m68k/include/asm/irqflags.h include/linux/bottom_half.h include/linux/hardirq.h +4 more+114 -1240 replies
2/7preempt: Rearrange a few symbols after headers mergeinclude/linux/preempt.h+15 -190 replies
3/7preempt: Rename PREEMPT_CHECK_OFFSET to PREEMPT_DISABLE_OFFSETinclude/linux/preempt.h+4 -40 replies
4/7preempt: Disable preemption from preempt_schedule*() callersinclude/linux/preempt.h kernel/sched/core.c+18 -141 reply
5/7sched: Pull preemption disablement duty up to __schedule() callerskernel/sched/core.c+3 -62 replies
6/7preempt: Fix out of date commentinclude/linux/preempt.h+1 -10 replies
7/7preempt: Remove PREEMPT_ACTIVE unmasking off in_atomic()include/linux/preempt.h+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/7] preempt: A few headers cleanups and preempt_schedule*() optimizations

Hi,

Optimizing the preempt_count operations (PREEMPT_ACTIVE + preempt_disable()) in a single operation from __schedule() callers was an idea of Linus a few month ago. Here is a re-iteration, with a few header cleanups along the way.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
sched/preempt

HEAD: c8bda0e6afc163e7e2804d30b9e4301652dc679c

Thanks,
Frederic
---

Frederic Weisbecker (7):
preempt: Merge preempt_mask.h into preempt.h
preempt: Rearrange a few symbols after headers merge
preempt: Rename PREEMPT_CHECK_OFFSET to PREEMPT_DISABLE_OFFSET
preempt: Disable preemption from preempt_schedule*() callers
sched: Pull preemption disablement duty up to __schedule() callers
preempt: Fix out of date comment
preempt: Remove PREEMPT_ACTIVE unmasking off in_atomic()

 arch/m68k/include/asm/irqflags.h |   3 -
 include/linux/bottom_half.h      |   1 -
 include/linux/hardirq.h          |   2 +-
 include/linux/preempt.h          | 123 ++++++++++++++++++++++++++++++++++++++-
 include/linux/preempt_mask.h     | 117 -------------------------------------
 include/linux/sched.h            |   2 +-
 kernel/sched/core.c              |  29 +++------
 lib/radix-tree.c                 |   2 +-
 8 files changed, 133 insertions(+), 146 deletions(-)