Re: [PATCH -tip-rcu] Make rcutorture more vicious: make quiescent rcutorture less power-hungry

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul E. McKenney
Date: Sunday, June 22, 2008 - 2:02 pm

On Sun, Jun 22, 2008 at 01:17:12PM -0700, Arjan van de Ven wrote:

Good point!!!  As follows, on top of the previous one.

This patch aligns the rcutorture wakeup times to align with all other
multiple-of-a-second wakeups to further decrease power consumption.

Suggested-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---

 rcutorture.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -urpNa -X dontdiff linux-2.6.26-rc4-rcut3-procq/kernel/rcutorture.c linux-2.6.26-rc4-rcut4-procqp/kernel/rcutorture.c
--- linux-2.6.26-rc4-rcut3-procq/kernel/rcutorture.c	2008-06-22 12:20:10.000000000 -0700
+++ linux-2.6.26-rc4-rcut4-procqp/kernel/rcutorture.c	2008-06-22 13:53:22.000000000 -0700
@@ -1,3 +1,4 @@
+
 /*
  * Read-Copy Update module-based torture test facility
  *
@@ -199,7 +200,7 @@ rcu_stutter_wait(void)
 		if (rcutorture_runnable)
 			schedule_timeout_interruptible(1);
 		else
-			schedule_timeout_interruptible(HZ);
+			schedule_timeout_interruptible(round_jiffies_relative(HZ));
 }
 
 /*
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Make rcutorture more vicious: add stutter feature, Paul E. McKenney, (Wed Jun 18, 5:21 am)
[PATCH] Make rcutorture more vicious: reinstate boot-time ..., Paul E. McKenney, (Wed Jun 18, 9:26 am)
Re: [PATCH] Make rcutorture more vicious: reinstate boot-t ..., Paul E. McKenney, (Thu Jun 19, 10:47 pm)
Re: [PATCH -tip-rcu] Make rcutorture more vicious: make qu ..., Paul E. McKenney, (Sun Jun 22, 2:02 pm)
Re: [PATCH -tip-rcu] Make rcutorture more vicious: make qu ..., Arjan van de Ven, (Mon Jun 23, 11:07 am)
[PATCH -tip-rcu] Make rcutorture more vicious: invoke RCU ..., Paul E. McKenney, (Wed Jun 25, 12:24 pm)
Re: [PATCH -tip-rcu] Make rcutorture more vicious: invoke ..., Paul E. McKenney, (Thu Jun 26, 8:48 am)