patch-2.4.20 linux-2.4.20/drivers/char/drm-4.0/tdfx_drv.c
Next file: linux-2.4.20/drivers/char/efirtc.c
Previous file: linux-2.4.20/drivers/char/drm-4.0/i810_dma.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu Nov 28 15:53:12 2002
- Orig file:
linux-2.4.19/drivers/char/drm-4.0/tdfx_drv.c
- Orig date:
Mon Feb 25 11:37:57 2002
diff -urN linux-2.4.19/drivers/char/drm-4.0/tdfx_drv.c linux-2.4.20/drivers/char/drm-4.0/tdfx_drv.c
@@ -578,10 +578,7 @@
/* Contention */
atomic_inc(&dev->total_sleeps);
-#if 1
- current->policy |= SCHED_YIELD;
-#endif
- schedule();
+ yield();
if (signal_pending(current)) {
ret = -ERESTARTSYS;
break;
@@ -604,8 +601,7 @@
when dev->last_context == lock.context
NOTE WE HOLD THE LOCK THROUGHOUT THIS
TIME! */
- current->policy |= SCHED_YIELD;
- schedule();
+ yield();
current->state = TASK_RUNNING;
remove_wait_queue(&dev->context_wait, &entry);
if (signal_pending(current)) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)