|
@@ -6618,11 +6618,9 @@ static void __cond_resched(void)
|
|
|
* PREEMPT_ACTIVE, which could trigger a second
|
|
|
* cond_resched() call.
|
|
|
*/
|
|
|
- do {
|
|
|
- add_preempt_count(PREEMPT_ACTIVE);
|
|
|
- schedule();
|
|
|
- sub_preempt_count(PREEMPT_ACTIVE);
|
|
|
- } while (need_resched());
|
|
|
+ add_preempt_count(PREEMPT_ACTIVE);
|
|
|
+ schedule();
|
|
|
+ sub_preempt_count(PREEMPT_ACTIVE);
|
|
|
}
|
|
|
|
|
|
int __sched _cond_resched(void)
|