From: Bjorn Helgaas <bjorn.helgaas@hp.com>
There's no need to wait for an isp2x00 to recognize a fabric if there's no
isp2x00. Probably nobody will notice the unnecessary slowdown on real
hardware, but it's a significant delay on a simulator.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
some time before recognizing it is attached to a fabric */
#if ISP2x00_FABRIC
- for (wait_time = jiffies + 5 * HZ; time_before(jiffies, wait_time);) {
- barrier();
- cpu_relax();
+ if (hosts) {
+ for (wait_time = jiffies + 5 * HZ; time_before(jiffies, wait_time);) {
+ barrier();
+ cpu_relax();
+ }
}
#endif