projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4522e08
)
IB/mthca: Use round_jiffies() for catastrophic error polling timer
author
Roland Dreier
<rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:52 +0000
(23:48 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:52 +0000
(23:48 -0700)
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>
drivers/infiniband/hw/mthca/mthca_catas.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mthca/mthca_catas.c
b/drivers/infiniband/hw/mthca/mthca_catas.c
index 50e2792e60c19fb5d83a1ac2e7bbe8d1d86e0913..cc440f90000becfd62928c8aee85e07d4ef30653 100644
(file)
--- 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)