From: akpm@osdl.org Subject: [patch 14/26] drivers/scsi/NCR5380.c: Replacing yield() with a better alternative Date: Tue, 19 Dec 2006 13:14:49 -0800 Message-ID: <200612192114.kBJLEnMI010715@shell0.pdx.osdl.net> Return-path: Received: from smtp.osdl.org ([65.172.181.25]:36104 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932979AbWLSVPH (ORCPT ); Tue, 19 Dec 2006 16:15:07 -0500 Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James.Bottomley@steeleye.com Cc: linux-scsi@vger.kernel.org, akpm@osdl.org, amol@verismonetworks.com, alan@lxorguk.ukuu.org.uk From: Amol Lad Replaced yield() with cond_resched() Signed-off-by: Amol Lad Acked-by: Alan Cox Signed-off-by: Andrew Morton --- drivers/scsi/NCR5380.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/scsi/NCR5380.c~drivers-scsi-ncr5380c-replacing-yield-with-a drivers/scsi/NCR5380.c --- a/drivers/scsi/NCR5380.c~drivers-scsi-ncr5380c-replacing-yield-with-a +++ 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(); } _