rcu: Fix rcutorture mod_timer argument to delay one jiffy
authorPaul E. McKenney <[email protected]>
Tue, 23 Feb 2010 01:05:04 +0000 (17:05 -0800)
committerIngo Molnar <[email protected]>
Thu, 25 Feb 2010 09:35:00 +0000 (10:35 +0100)
The current "mod_timer(&t, 1)" potentially makes the timer fire
immediately, change this to wait one jiffy.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <1266887105[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/rcutorture.c

index 5f43f30fcd1d66e1ba7f34a7def8ed697cdd5b7d..258cdf0a91eb78efcda53b91aaa845f7045066b7 100644 (file)
@@ -853,7 +853,7 @@ rcu_torture_reader(void *arg)
        do {
                if (irqreader && cur_ops->irq_capable) {
                        if (!timer_pending(&t))
-                               mod_timer(&t, 1);
+                               mod_timer(&t, jiffies + 1);
                }
                idx = cur_ops->readlock();
                completed = cur_ops->completed();