radeon: Split out ring locking and allocation
authorMatthew Garrett <mjg@redhat.com>
Fri, 30 Apr 2010 19:24:17 +0000 (15:24 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 18 May 2010 08:21:45 +0000 (18:21 +1000)
commit91700f3cac56a1998a56d41e4459a5cebdb4f752
tree24d82df7ed2b7f23e49963b6aa7ae31adbebe8f2
parent78930b1c39dd4a5afd5aa873eec11b5bd7079866
radeon: Split out ring locking and allocation

We need to handle the ring while we've already locked it, so split out
the allocation and commit functions in order to allow them to be used.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_ring.c