diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-03-21 12:09:35 +0100 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2013-05-20 13:45:21 -0400 |
commit | 8f13003866e259f017ad26c6c148dff95346e41e (patch) | |
tree | aacf306847179e681e86e0ba755a79740bb99da0 /include | |
parent | 95a084923781f8a38f215a7d2aa1ae09635d58a7 (diff) |
sched: Create schedule_preempt_disabled()
Get rid of the ever repeating:
preempt_enable_no_resched();
schedule();
preempt_disable();
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 8204898dfed8..f0f761feeaa9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -360,6 +360,7 @@ extern signed long schedule_timeout_interruptible(signed long timeout); extern signed long schedule_timeout_killable(signed long timeout); extern signed long schedule_timeout_uninterruptible(signed long timeout); asmlinkage void schedule(void); +extern void schedule_preempt_disabled(void); extern int mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner); struct nsproxy; |