diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-07-14 09:56:44 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-10 16:40:34 -0500 |
commit | e1da9f96df102c999b4f45da7d518e6c08a2c05e (patch) | |
tree | b361a9e23cfe4ad5b6e2f98b4093ffabb99f43c3 /include | |
parent | d95954154579bb8fbb3f37137b1a799e04b4ea46 (diff) |
cond-resched-softirq-fix.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-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 d177da5ebcf6..b76e0c80348d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2700,12 +2700,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 /* * Does a critical section need to be broken due to another |