patch-2.1.110 linux/drivers/char/c-qcam.c

Next file: linux/drivers/char/console.c
Previous file: linux/drivers/char/bttv.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/drivers/char/c-qcam.c linux/drivers/char/c-qcam.c
@@ -356,7 +356,7 @@
 		wantlen -= t;
 		if (t < s) 
 			break;
-		if (need_resched)
+		if (current->need_resched)
 			schedule();
 	}
 
@@ -377,7 +377,7 @@
 		int l;
 		do {
 			l = qcam_read_bytes(q, tmpbuf, 3);
-			if (need_resched)
+			if (current->need_resched)
 				schedule();
 		} while (l && (tmpbuf[0] == 0x7e || tmpbuf[1] == 0x7e || tmpbuf[2] == 0x7e));
 		if (tmpbuf[0] != 0xe || tmpbuf[1] != 0x0 || tmpbuf[2] != 0xf)
@@ -407,7 +407,7 @@
 		int l;
 		do {
 			l = qcam_read_bytes(q, tmpbuf, 1);
-			if (need_resched)
+			if (current->need_resched)
 				schedule();
 		} while (l && tmpbuf[0] == 0x7e);
 		l = qcam_read_bytes(q, tmpbuf+1, 2);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov