summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorRik Faith <faith@alephnull.com>2000-09-19 19:41:07 +0000
committerRik Faith <faith@alephnull.com>2000-09-19 19:41:07 +0000
commitde842ea5dbfd78d2e749d552f06410dbc2072087 (patch)
treec51835450b957ba72f304d0c3498ac70d81e678d /linux
parent01346c98b1d919374dc1f2ee70d4b401d2eaad67 (diff)
Make management of current->state more correct.
Diffstat (limited to 'linux')
-rw-r--r--linux/mga_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/mga_dma.c b/linux/mga_dma.c
index 64de17c7..4daa03ac 100644
--- a/linux/mga_dma.c
+++ b/linux/mga_dma.c
@@ -224,9 +224,9 @@ drm_buf_t *mga_freelist_get(drm_device_t *dev)
dev_priv->last_prim_age);
set_bit(MGA_IN_GETBUF, &dev_priv->dispatch_status);
add_wait_queue(&dev_priv->buf_queue, &entry);
- current->state = TASK_INTERRUPTIBLE;
for (;;) {
mga_dma_schedule(dev, 0);
+ current->state = TASK_INTERRUPTIBLE;
if(!test_bit(MGA_IN_GETBUF,
&dev_priv->dispatch_status))
break;