aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2008-07-15 02:48:52 -0400
committerRoland Dreier <rolandd@cisco.com>2008-07-15 02:48:52 -0400
commitc036925ac0e940a4e8525b08e89d2c64fe282c51 (patch)
tree01bf048b52e4ae808303077440672c6e6fd5bcb1 /drivers/infiniband
parent4522e08ced48baaf28990e2674e940aae9940310 (diff)
IB/mthca: Use round_jiffies() for catastrophic error polling timer
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@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_catas.c2
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 50e2792e60c1..cc440f90000b 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)
135 } 135 }
136 136
137 mod_timer(&dev->catas_err.timer, 137 mod_timer(&dev->catas_err.timer,
138 jiffies + MTHCA_CATAS_POLL_INTERVAL); 138 round_jiffies(jiffies + MTHCA_CATAS_POLL_INTERVAL));
139} 139}
140 140
141void mthca_start_catas_poll(struct mthca_dev *dev) 141void mthca_start_catas_poll(struct mthca_dev *dev)