sched: Consolidate open coded preemptible() checks
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 19 Jun 2013 21:56:22 +0000 (23:56 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Mon, 12 Aug 2013 22:40:43 +0000 (00:40 +0200)
commitfbb00b568bc93073452d2a0f9f06e7c33d16eece
tree1e0d6f980341e3f7848717ba6e3ea9816e44baa4
parentae920eb24277e4a174a3ca575ce42b98b18a6748
sched: Consolidate open coded preemptible() checks

preempt_schedule() and preempt_schedule_context() open
code their preemptability checks.

Use the standard API instead for consolidation.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Alex Shi <alex.shi@intel.com>
Cc: Paul Turner <pjt@google.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
kernel/context_tracking.c
kernel/sched/core.c