sched/core: Make sched_ttwu_pending() atomic in time
authorPeter Zijlstra <peterz@infradead.org>
Tue, 21 Feb 2017 13:36:23 +0000 (14:36 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Mar 2017 08:46:24 +0000 (09:46 +0100)
commit77558e4d01ac0c7fa8cb1af4a61c2ab508d79f30
treeda226c41a6eff545e088fb8a45af973d63e9f3d5
parent7134b3e941613dcb959b4b178cc4a35e45cbbc0d
sched/core: Make sched_ttwu_pending() atomic in time

Since all tasks on the wake_list are woken under a single rq->lock
avoid calling update_rq_clock() for each task.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c