Skip to contentSkip to conversation

drivers/scsi/NCR5380.c: Replacing yield() with a better alternative

PATCH In review [email protected] 1 participant 1 message Dec 4, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 14/30 drivers/scsi/NCR5380.c: Replacing yield() with a better alternative

From: Amol Lad <[email protected]>

Replaced yield() with cond_resched()

---

 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
diff -puN drivers/scsi/NCR5380.c~drivers-scsi-ncr5380c-replacing-yield-with-a drivers/scsi/NCR5380.c
@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct 
 		if((r & bit) == val)
 			return 0;
 		if(!in_interrupt())
-			yield();
+			cond_resched();
 		else
 			cpu_relax();
 	}

_