diff options
| author | Dave Jones <davej@suse.de> | 2002-04-28 04:55:06 -0700 |
|---|---|---|
| committer | Jaroslav Kysela <perex@suse.cz> | 2002-04-28 04:55:06 -0700 |
| commit | e149ee4cd47df77b270c529433d4a66ab00a9f57 (patch) | |
| tree | 279428a5c60f5dad012c407c1cb8014b72c43d41 /drivers/net/fc | |
| parent | 2617765b2b5dab1a448a8a56629d16c345bcbf6e (diff) | |
[PATCH] Jiffies wrap fixes.
Diffstat (limited to 'drivers/net/fc')
| -rw-r--r-- | drivers/net/fc/iph5526.c | 5 |
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++; |
