vmwgfx: Wrap drm_read and drm_poll
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 10 Oct 2011 10:23:27 +0000 (12:23 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Oct 2011 14:47:19 +0000 (15:47 +0100)
commit5438ae88d098c086cfb94be5327c49a04fc6bfd7
tree7ab7c17c9efe7b4c7f1dd02b45fed4296ef19ced
parent57c5ee79acba9582762c09c269e0e2ae1adf1b31
vmwgfx: Wrap drm_read and drm_poll

Make sure the device is processing the fifo when these functions are
called in case they might sleep waiting for an event.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c