|
@@ -6610,9 +6610,8 @@ static inline int should_resched(void)
|
|
|
|
|
|
static void __cond_resched(void)
|
|
static void __cond_resched(void)
|
|
{
|
|
{
|
|
-#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
|
|
|
|
__might_sleep(__FILE__, __LINE__);
|
|
__might_sleep(__FILE__, __LINE__);
|
|
-#endif
|
|
|
|
|
|
+
|
|
add_preempt_count(PREEMPT_ACTIVE);
|
|
add_preempt_count(PREEMPT_ACTIVE);
|
|
schedule();
|
|
schedule();
|
|
sub_preempt_count(PREEMPT_ACTIVE);
|
|
sub_preempt_count(PREEMPT_ACTIVE);
|