[ofa-general] [PATCH] mlx4/net: Use the enumerated value of GO_BIT_TIMEOUT for the Command Interface timeout
Dotan Barak
dotanb at dev.mellanox.co.il
Tue Aug 7 01:18:52 PDT 2007
Use the enumerated value of GO_BIT_TIMEOUT for the Command Interface timeout
(just like being done in the mthca driver).
Signed-off-by: Dotan Barak <dotanb at dev.mellanox.co.il>
---
diff --git a/drivers/net/mlx4/cmd.c b/drivers/net/mlx4/cmd.c
index a9f3175..4b99e9b 100644
--- a/drivers/net/mlx4/cmd.c
+++ b/drivers/net/mlx4/cmd.c
@@ -95,7 +95,7 @@ enum {
};
enum {
- GO_BIT_TIMEOUT = 10000
+ GO_BIT_TIMEOUT = HZ * 10
};
struct mlx4_cmd_context {
@@ -155,7 +155,7 @@ static int mlx4_cmd_post(struct mlx4_dev *dev, u64 in_param, u64 out_param,
end = jiffies;
if (event)
- end += HZ * 10;
+ end += GO_BIT_TIMEOUT;
while (cmd_pending(dev)) {
if (time_after_eq(jiffies, end))
More information about the general
mailing list