浏览代码

[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 18 年之前
父节点
当前提交
730a646ddf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
 			return 0;
 		if(!in_interrupt())
-			yield();
+			cond_resched();
 		else
 			cpu_relax();
 	}