Skip to content

Commit

Permalink
IB/mthca: Use round_jiffies() for catastrophic error polling timer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Dreier committed Jul 15, 2008
1 parent 4522e08 commit c036925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mthca/mthca_catas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c036925

Please sign in to comment.