summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-14 07:56:44 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:38:12 (GMT)
commit6978b913fd1e835e7e26157d538bdbd5bc8bdad0 (patch)
tree92d504e94291a3a77d0f5aa2acdb47caecaac424 /include/linux
parentf15a3389156d2edf1fc8427ef6cef53212b15e9e (diff)
downloadlinux-fsl-qoriq-6978b913fd1e835e7e26157d538bdbd5bc8bdad0.tar.xz
cond-resched-softirq-fix.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sched.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 51e84f0..a99e9e2 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2539,12 +2539,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)
{