scftorture: Add cond_resched() to test loop
[linux-2.6-microblaze.git] / kernel / scftorture.c
index fc22bcc..554a521 100644 (file)
@@ -420,6 +420,7 @@ static int scftorture_invoker(void *arg)
                        set_cpus_allowed_ptr(current, cpumask_of(cpu));
                        was_offline = false;
                }
+               cond_resched();
        } while (!torture_must_stop());
 
        VERBOSE_SCFTORTOUT("scftorture_invoker %d ended", scfp->cpu);