diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-07-14 07:56:44 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-02-13 22:20:32 (GMT) |
commit | 950b54915b0d530ce5513cedd5d44ddb6ae7441d (patch) | |
tree | 54ed4965373efa094c858a27623a06903a6870f9 /include/linux/sched.h | |
parent | 01046732fdd201580f3795edab789a74bd44aa9b (diff) | |
download | linux-fsl-qoriq-950b54915b0d530ce5513cedd5d44ddb6ae7441d.tar.xz |
cond-resched-softirq-fix.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a559a5f..df281c5 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2578,12 +2578,16 @@ extern int __cond_resched_lock(spinlock_t *lock); __cond_resched_lock(lock); \ }) +#ifndef CONFIG_PREEMPT_RT_FULL extern int __cond_resched_softirq(void); #define cond_resched_softirq() ({ \ __might_sleep(__FILE__, __LINE__, SOFTIRQ_DISABLE_OFFSET); \ __cond_resched_softirq(); \ }) +#else +# define cond_resched_softirq() cond_resched() +#endif static inline void cond_resched_rcu(void) { |