Commit e3d7be270c5b1be07ffadcc8b56599ad8e975c1d

Authored by Paul E. McKenney
Committed by Ingo Molnar
1 parent 1e74f9cbbb

rcu, rcutorture: make quiescent rcutorture less power-hungry

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: josh@freedesktop.org
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: dino@in.ibm.com
Cc: akpm@linux-foundation.org
Cc: torvalds@linux-foundation.org
Cc: vegard.nossum@gmail.com
Cc: adobriyan@gmail.com
Cc: oleg@tv-sign.ru
Cc: bunk@kernel.org
Cc: rjw@sisk.pl
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

... ... @@ -196,7 +196,10 @@
196 196 rcu_stutter_wait(void)
197 197 {
198 198 while (stutter_pause_test || !rcutorture_runnable)
199   - schedule_timeout_interruptible(1);
  199 + if (rcutorture_runnable)
  200 + schedule_timeout_interruptible(1);
  201 + else
  202 + schedule_timeout_interruptible(HZ);
200 203 }
201 204  
202 205 /*