summaryrefslogtreecommitdiff
path: root/drivers/net/fc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/fc')
-rw-r--r--drivers/net/fc/iph5526.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/fc/iph5526.c b/drivers/net/fc/iph5526.c
index c6a8663a3e76..0819ccc93818 100644
--- a/drivers/net/fc/iph5526.c
+++ b/drivers/net/fc/iph5526.c
@@ -3870,8 +3870,11 @@ struct pci_dev *pdev = NULL;
/* Wait for the Link to come up and the login process
* to complete.
*/
- for(timeout = jiffies + 10*HZ; (timeout > jiffies) && ((fi->g.link_up == FALSE) || (fi->g.port_discovery == TRUE) || (fi->g.explore_fabric == TRUE) || (fi->g.perform_adisc == TRUE));)
+ for(timeout = jiffies + 10*HZ; time_before(jiffies, timeout) && ((fi->g.link_up == FALSE) || (fi->g.port_discovery == TRUE) || (fi->g.explore_fabric == TRUE) || (fi->g.perform_adisc == TRUE));)
+ {
+ cpu_relax();
barrier();
+ }
count++;
no_of_hosts++;