sched/core: Add rq->lock wrappers
authorPeter Zijlstra <peterz@infradead.org>
Tue, 4 Oct 2016 14:04:35 +0000 (16:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Mar 2017 08:46:22 +0000 (09:46 +0100)
commit8a8c69c32778865affcedc2111bb5d938b50516f
tree8aa83e7326d6979cc3359c85126e9267d1346fc2
parent26ae58d23b94a075ae724fd18783a3773131cfbc
sched/core: Add rq->lock wrappers

The missing update_rq_clock() check can work with partial rq->lock
wrappery, since a missing wrapper can cause the warning to not be
emitted when it should have, but cannot cause the warning to trigger
when it should not have.

The duplicate update_rq_clock() check however can cause false warnings
to trigger. Therefore add more comprehensive rq->lock wrappery.

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