mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 05:28:03 +02:00
Make management of current->state more correct.
This commit is contained in:
parent
01346c98b1
commit
de842ea5db
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue