drm/radeon: replace vmram_mutex with mclk_lock v2
authorChristian König <deathsimple@vodafone.de>
Fri, 11 May 2012 12:57:18 +0000 (14:57 +0200)
committerChristian König <deathsimple@vodafone.de>
Thu, 21 Jun 2012 07:38:43 +0000 (09:38 +0200)
commitdb7fce3983ad9b3deebda450121af4aaf6809ce2
treec2a0b36453630f26a752ad59fb241c2e5189f997
parent220907d9835ce5181b9f782c862b1ee7a4d24c23
drm/radeon: replace vmram_mutex with mclk_lock v2

It is a rw_semaphore now and only write locked
while changing the clock. Also the lock is renamed
to better reflect what it is protecting.

v2: Keep the ttm_vm_ops on IGPs

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_object.c
drivers/gpu/drm/radeon/radeon_pm.c
drivers/gpu/drm/radeon/radeon_ttm.c