Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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();
	}
	}