sched/core: Add {EN,DE}QUEUE_NOCLOCK flags
authorPeter Zijlstra <peterz@infradead.org>
Tue, 4 Oct 2016 14:29:45 +0000 (16:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Mar 2017 08:46:23 +0000 (09:46 +0100)
commit0a67d1ee30ef1efe6a412b3590e08734902aed43
treefbeb69f487b4cd584ab238fbd006d86db60f2a69
parent8a8c69c32778865affcedc2111bb5d938b50516f
sched/core: Add {EN,DE}QUEUE_NOCLOCK flags

Currently {en,de}queue_task() do an unconditional update_rq_clock().
However since we want to avoid duplicate updates, so that each
rq->lock section appears atomic in time, we need to be able to skip
these clock updates.

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
kernel/sched/sched.h