mtd/drivers/mtd/chips amd_flash.c,1.18,1.19

David Woodhouse dwmw2 at infradead.org
Fri Jan 24 08:30:14 EST 2003


Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv22470

Modified Files:
	amd_flash.c 
Log Message:
Use need_resched()


Index: amd_flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/amd_flash.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- amd_flash.c	6 Aug 2002 05:27:32 -0000	1.18
+++ amd_flash.c	24 Jan 2003 13:30:11 -0000	1.19
@@ -926,7 +926,7 @@
 
 	times_left = 500000;
 	while (times_left-- && flash_is_busy(map, adr, private->interleave)) { 
-		if (current->need_resched) {
+		if (need_resched()) {
 			spin_unlock_bh(chip->mutex);
 			schedule();
 			spin_lock_bh(chip->mutex);
@@ -1163,7 +1163,7 @@
 		/* Latency issues. Drop the lock, wait a while and retry */
 		spin_unlock_bh(chip->mutex);
 
-		if (current->need_resched)
+		if (need_resched())
 			schedule();
 		else
 			udelay(1);





More information about the linux-mtd-cvs mailing list