From: Anton Blanchard Date: Mon, 15 Oct 2007 05:49:07 +0000 (-0500) Subject: IB/ehca: Use round_jiffies() for EQ polling timer X-Git-Tag: MMI-PSA29.97-13-9~37720^2~26 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a7d2dce4169ed42310926a5675fffd0986caa26;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IB/ehca: Use round_jiffies() for EQ polling timer Use round_jiffies() to align ehca's 1-second timer with other timers and potentially save power by sleeping cores for longer. Signed-off-by: Anton Blanchard Acked-by: Hoang-Nam Nguyen Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index c9e32b46387f..173d3e9f9268 100644 --- a/drivers/infiniband/hw/ehca/ehca_main.c +++ b/drivers/infiniband/hw/ehca/ehca_main.c @@ -934,7 +934,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); }