summaryrefslogtreecommitdiff
path: root/linux/gamma_dma.c
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-09-29 01:47:11 +0000
committerRik Faith <faith@alephnull.com>2000-09-29 01:47:11 +0000
commit39a659e87718d8b6bbf138510e83de7a1e95d855 (patch)
tree5d7ed3ac4e9f3d08e8abb94f46fe2db2d0a764d8 /linux/gamma_dma.c
parentb0a7efb5a959a6105486d303d25d06d69d5d569e (diff)
Audit calls to schedule() Remove tags from files shared with Linux kernel
tree Remove debugging statements to make debugging more useful Other minor cleanups in preparation for sync with Linux 2.4.0-test9-pre7
Diffstat (limited to 'linux/gamma_dma.c')
-rw-r--r--linux/gamma_dma.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/gamma_dma.c b/linux/gamma_dma.c
index 77b07793..4ab67281 100644
--- a/linux/gamma_dma.c
+++ b/linux/gamma_dma.c
@@ -542,10 +542,9 @@ static int gamma_dma_send_buffers(drm_device_t *dev, drm_dma_t *d)
if (d->flags & _DRM_DMA_BLOCK) {
DRM_DEBUG("%d waiting\n", current->pid);
- current->state = TASK_INTERRUPTIBLE;
for (;;) {
- if (!last_buf->waiting
- && !last_buf->pending)
+ current->state = TASK_INTERRUPTIBLE;
+ if (!last_buf->waiting && !last_buf->pending)
break; /* finished */
schedule();
if (signal_pending(current)) {