mirror of
https://github.com/adulau/aha.git
synced 2024-12-30 20:56:23 +00:00
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>
This commit is contained in:
parent
4522e08ced
commit
c036925ac0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue