Commit 730a646d authored by Amol Lad's avatar Amol Lad Committed by James Bottomley

[SCSI] NCR5380: Replace yield() with a better alternative

Replaced yield() with cond_resched()
Signed-off-by: default avatarAmol Lad <amol@verismonetworks.com>
Acked-by: default avatarAlan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 355dfa1b
...@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i ...@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i
if((r & bit) == val) if((r & bit) == val)
return 0; return 0;
if(!in_interrupt()) if(!in_interrupt())
yield(); cond_resched();
else else
cpu_relax(); cpu_relax();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment