drm/radeon: add proper locking to the SA v3

Make the suballocator self containing to locking.

v2: split the bugfix into a seperate patch.
v3: remove some unreleated changes.

Sig-off-by: Christian König <deathsimple@vodafone.de>

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Christian König
2012-05-09 15:34:50 +02:00
committed by Dave Airlie
parent dd8bea2111
commit a651c55a0b
2 changed files with 7 additions and 0 deletions

View File

@@ -381,6 +381,7 @@ struct radeon_bo_list {
* alignment).
*/
struct radeon_sa_manager {
spinlock_t lock;
struct radeon_bo *bo;
struct list_head sa_bo;
unsigned size;