sched: fix rt ptracer monopolizing CPU
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / sched.c
index 9ac99896db8f13094e253c36e62bfde20a481708..48fc74b6df55aba7195d5bfe25f7b4bf8b2bf531 100644 (file)
@@ -1133,7 +1133,7 @@ repeat:
         * yield - it could be a while.
         */
        if (unlikely(on_rq)) {
-               yield();
+               schedule_timeout_uninterruptible(1);
                goto repeat;
        }