sched/debug: Add SCHED_WARN_ON()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 20 Sep 2016 20:34:51 +0000 (22:34 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 30 Sep 2016 09:03:29 +0000 (11:03 +0200)
commit9148a3a10e0b74c5722174a0bbef16d821f8a48b
tree7852c5c88abeccb66167da1c4dc4da8e4633be67
parent49bd21efe7fc84f9c82c8475b8ff6f8b865b1692
sched/debug: Add SCHED_WARN_ON()

Provide SCHED_WARN_ON as wrapper for WARN_ON_ONCE() to avoid
CONFIG_SCHED_DEBUG 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>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c
kernel/sched/sched.h