diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2008-06-22 16:06:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-24 07:36:38 -0400 |
commit | e3d7be270c5b1be07ffadcc8b56599ad8e975c1d (patch) | |
tree | 4a6e0d7fe654a1b1ea51c846312442dbed866a04 /kernel | |
parent | 1e74f9cbbba5348a6c58988cce0f19d6ef887cc8 (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')
-rw-r--r-- | kernel/rcutorture.c | 5 |
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 | |||
196 | rcu_stutter_wait(void) | 196 | rcu_stutter_wait(void) |
197 | { | 197 | { |
198 | while (stutter_pause_test || !rcutorture_runnable) | 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 | /* |