[ofa-general] [PATCH] Use round_jiffies() in ehca timer

Roland Dreier rdreier at cisco.com
Wed Dec 19 19:52:42 PST 2007


 > Use round_jiffies() to align the 1 second timer with other timers and
 > potentially save power by sleeping cores for longer.
 > 
 > Signed-off-by: Anton Blanchard <anton at samba.org>
 > ---
 > 
 > diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c
 > index 403467f..23000b7 100644
 > --- a/drivers/infiniband/hw/ehca/ehca_main.c
 > +++ b/drivers/infiniband/hw/ehca/ehca_main.c
 > @@ -902,7 +902,7 @@ void ehca_poll_eqs(unsigned long data)
 >  				ehca_process_eq(shca, 0);
 >  		}
 >  	}
 > -	mod_timer(&poll_eqs_timer, jiffies + HZ);
 > +	mod_timer(&poll_eqs_timer, round_jiffies(jiffies + HZ));
 >  	spin_unlock(&shca_list_lock);
 >  }

ehca guys -- this looks fine to me -- any objection to merging for 2.6.25?



More information about the general mailing list