IB/mthca: Convert FW commands to use wait_for_completion_timeout()
authorRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:30 +0000 (20:37 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 18 Jun 2006 03:37:30 +0000 (20:37 -0700)
commite9cd59418f049966a690372c4919e98c88bb119b
tree7624e7d85f4f927692771483a763dafa9f8bb8d5
parentf5358a172f79e3f995919224401b25637f4324f6
IB/mthca: Convert FW commands to use wait_for_completion_timeout()

The kernel has had wait_for_completion_timeout() for a long time now.
mthca should use it to handle FW commands timing out, instead of
implementing the same thing in a much more complicated way by using
wait_for_completion() along with a timer that does complete().

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c