Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c036925a authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent 4522e08c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)