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

Roland Dreier rdreier at cisco.com
Fri Jan 11 11:09:27 PST 2008


ehca guys -- this looks sane to me, and I've had it sitting in my
inbox for a while.  Any objection to merging it for 2.6.25?

 - R.

 > 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);
 >  }
 >  



More information about the general mailing list