sched/core: Add WARNING for multiple update_rq_clock() calls
authorPeter Zijlstra <peterz@infradead.org>
Mon, 3 Oct 2016 14:53:49 +0000 (16:53 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Mar 2017 08:46:21 +0000 (09:46 +0100)
commit26ae58d23b94a075ae724fd18783a3773131cfbc
tree2838d38cfafb54b10b97cbe9e39cb3cf0d90115e
parent3e777f9909483b603946685d88acfae89f31b07b
sched/core: Add WARNING for multiple update_rq_clock() calls

Now that we have no missing calls, add a warning to find multiple
calls.

By having only a single update_rq_clock() call per rq-lock section,
the section appears 'atomic' wrt time.

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/features.h