drivers/scsi/NCR5380.c: Replacing yield() with a better alternative
Subsystems (2)
PATCH 14/30 drivers/scsi/NCR5380.c: Replacing yield() with a better alternative
From: Amol Lad <[email protected]>
Replaced yield() with cond_resched()
Signed-off-by Amol Lad <[email protected]>
Acked-by Alan Cox <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/scsi/NCR5380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/NCR5380.c renamed from drivers/scsi/NCR5380.c~drivers-scsi-ncr5380c-replacing-yield-with-a +1 -1
@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(structif ((r & bit) == val)return 0 ;if (!in_interrupt ()) -yield (); +cond_resched ();else cpu_relax (); }
_