projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01346c9
)
Make management of current->state more correct.
author
Rik Faith
<faith@alephnull.com>
Tue, 19 Sep 2000 19:41:07 +0000
(19:41 +0000)
committer
Rik Faith
<faith@alephnull.com>
Tue, 19 Sep 2000 19:41:07 +0000
(19:41 +0000)
linux/mga_dma.c
patch
|
blob
|
history
diff --git
a/linux/mga_dma.c
b/linux/mga_dma.c
index
64de17c
..
4daa03a
100644
(file)
--- 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;