cond-resched-softirq-fix.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
01a5a968fd
commit
a4b1285e8c
|
@ -2760,12 +2760,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)
|
||||
{
|
||||
|
|
|
@ -4259,6 +4259,7 @@ int __cond_resched_lock(spinlock_t *lock)
|
|||
}
|
||||
EXPORT_SYMBOL(__cond_resched_lock);
|
||||
|
||||
#ifndef CONFIG_PREEMPT_RT_FULL
|
||||
int __sched __cond_resched_softirq(void)
|
||||
{
|
||||
BUG_ON(!in_softirq());
|
||||
|
@ -4272,6 +4273,7 @@ int __sched __cond_resched_softirq(void)
|
|||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(__cond_resched_softirq);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* yield - yield the current processor to other threads.
|
||||
|
|
Loading…
Reference in New Issue