mtd/drivers/mtd/devices doc2000.c,1.47,1.48

David Woodhouse dwmw2 at infradead.org
Fri Sep 13 11:22:35 EDT 2002


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

Modified Files:
	doc2000.c 
Log Message:
use cond_resched

Index: doc2000.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/doc2000.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- doc2000.c	29 Aug 2002 21:43:26 -0000	1.47
+++ doc2000.c	13 Sep 2002 15:22:33 -0000	1.48
@@ -97,12 +97,8 @@
 			DEBUG(MTD_DEBUG_LEVEL2, "_DoC_WaitReady timed out.\n");
 			return -EIO;
 		}
-		if (current->need_resched) {
-			set_current_state(TASK_UNINTERRUPTIBLE);
-			schedule_timeout(1);
-		}
-		else
-			udelay(1);
+		udelay(1);
+		cond_resched();
 	}
 
 	return 0;





More information about the linux-mtd-cvs mailing list