[PATCH RFC v2] Fix race window during idle cpu selection.

From: Atish Patra
Date: Tue Dec 05 2017 - 14:11:12 EST


This patch tries to fix a possible race window that lets multiple
tasks wakeup on the same cpu. schbench, uperf & Jackbench (Android)
mostly showed improvements while none of the other standard benchmarks
have shown any regression.

changes from v1->v2:
1. Added the performance numbers.
2. Did not include the debug patch.
It can still be found at
https://lkml.org/lkml/2017/10/31/16

Atish Patra (1):
sched: Minimize the idle cpu selection race window.

kernel/sched/core.c | 4 ++++
kernel/sched/fair.c | 12 +++++++++---
kernel/sched/idle_task.c | 1 +
kernel/sched/sched.h | 1 +
4 files changed, 15 insertions(+), 3 deletions(-)

--
2.7.4