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

Frederic Weisbecker
2015-01-28T00:24:20Z

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(-)

--
2.1.4