]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
rcu: make quiescent rcutorture less power-hungry
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 22 Jun 2008 21:02:55 +0000 (14:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 24 Jun 2008 11:36:39 +0000 (13:36 +0200)
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>
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>
kernel/rcutorture.c

index 0c40c13c54024d6af5e1332fdd91bbd5746288b5..5e954edf0ed55a3f246c1f8994e2907d9e5f0ad8 100644 (file)
@@ -199,7 +199,7 @@ rcu_stutter_wait(void)
                if (rcutorture_runnable)
                        schedule_timeout_interruptible(1);
                else
-                       schedule_timeout_interruptible(HZ);
+                       schedule_timeout_interruptible(round_jiffies_relative(HZ));
 }
 
 /*