vmwgfx: Make vmw_wait_seqno a bit more readable
commit4f73a96bd76914009682432842ac04a32ab9115b
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 1 Sep 2011 20:18:43 +0000 (1 20:18 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Sep 2011 10:48:43 +0000 (6 11:48 +0100)
tree65264c569d796be5388008b8303738b642fd9c83
parent6bcd8d3c782b7b2c98c8f414a6bb43cf6b84e53c
vmwgfx: Make vmw_wait_seqno a bit more readable

Break out on-demand enabling and disabling of fence irqs to make
the function more readable. Also make dev_priv->fence_queue_waiters an int
instead of an atomic_t since we only manipulate it with dev_priv->hw_mutex
held.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@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_irq.c