Explorar o código

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

Replaced yield() with cond_resched()

Signed-off-by: Amol Lad <amol@verismonetworks.com>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Amol Lad %!s(int64=18) %!d(string=hai) anos
pai
achega
730a646ddf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/scsi/NCR5380.c

+ 1 - 1
drivers/scsi/NCR5380.c

@@ -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();
 	}
 	}