[ofa-general] [PATCH] IB/mthca: Use round_jiffies() for catastrophic error polling timer

Roland Dreier rdreier at cisco.com
Sun Jul 6 23:01:10 PDT 2008


Exactly when the catastrophic error polling timer function runs is not
important, so use round_jiffies() to save unnecessary wakeups.

Signed-off-by: Roland Dreier <rolandd at cisco.com>
---
 drivers/infiniband/hw/mthca/mthca_catas.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/infiniband/hw/mthca/mthca_catas.c b/drivers/infiniband/hw/mthca/mthca_catas.c
index 50e2792..cc440f9 100644
--- a/drivers/infiniband/hw/mthca/mthca_catas.c
+++ b/drivers/infiniband/hw/mthca/mthca_catas.c
@@ -135,7 +135,7 @@ static void poll_catas(unsigned long dev_ptr)
 		}
 
 	mod_timer(&dev->catas_err.timer,
-		  jiffies + MTHCA_CATAS_POLL_INTERVAL);
+		  round_jiffies(jiffies + MTHCA_CATAS_POLL_INTERVAL));
 }
 
 void mthca_start_catas_poll(struct mthca_dev *dev)
-- 
1.5.6




More information about the general mailing list