summaryrefslogtreecommitdiff
path: root/kernel/rcutorture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2008-06-22 13:06:38 -0700
committerIngo Molnar <mingo@elte.hu>2008-06-24 13:36:38 +0200
commite3d7be270c5b1be07ffadcc8b56599ad8e975c1d (patch)
tree4a6e0d7fe654a1b1ea51c846312442dbed866a04 /kernel/rcutorture.c
parent1e74f9cbbba5348a6c58988cce0f19d6ef887cc8 (diff)
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>
Diffstat (limited to 'kernel/rcutorture.c')
-rw-r--r--kernel/rcutorture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index 27003e2421c7..0c40c13c5402 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -196,7 +196,10 @@ static void
rcu_stutter_wait(void)
{
while (stutter_pause_test || !rcutorture_runnable)
- schedule_timeout_interruptible(1);
+ if (rcutorture_runnable)
+ schedule_timeout_interruptible(1);
+ else
+ schedule_timeout_interruptible(HZ);
}
/*