aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/sched.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 03f7e3fd80b5..4c5ee843d57f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -6618,11 +6618,9 @@ static void __cond_resched(void)
6618 * PREEMPT_ACTIVE, which could trigger a second 6618 * PREEMPT_ACTIVE, which could trigger a second
6619 * cond_resched() call. 6619 * cond_resched() call.
6620 */ 6620 */
6621 do { 6621 add_preempt_count(PREEMPT_ACTIVE);
6622 add_preempt_count(PREEMPT_ACTIVE); 6622 schedule();
6623 schedule(); 6623 sub_preempt_count(PREEMPT_ACTIVE);
6624 sub_preempt_count(PREEMPT_ACTIVE);
6625 } while (need_resched());
6626} 6624}
6627 6625
6628int __sched _cond_resched(void) 6626int __sched _cond_resched(void)