sched/core: Avoid _cond_resched() for PREEMPT=y
authorPeter Zijlstra <peterz@infradead.org>
Mon, 19 Sep 2016 10:57:53 +0000 (12:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Sep 2016 12:53:46 +0000 (14:53 +0200)
commit35a773a07926a22bf19d77ee00024522279c4e68
tree23f24c6a2932df3cb5078e438abbfb1966e4733b
parent9af6528ee9b682df7f29dbee86fbba0b67eab944
sched/core: Avoid _cond_resched() for PREEMPT=y

On fully preemptible kernels _cond_resched() is pointless, so avoid
emitting any code for it.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
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>
include/linux/sched.h
kernel/sched/core.c