diff options
author | Christian König <deathsimple@vodafone.de> | 2012-05-11 08:57:18 -0400 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2012-06-21 03:38:43 -0400 |
commit | db7fce3983ad9b3deebda450121af4aaf6809ce2 (patch) | |
tree | c2a0b36453630f26a752ad59fb241c2e5189f997 /drivers/gpu/drm/radeon/radeon.h | |
parent | 220907d9835ce5181b9f782c862b1ee7a4d24c23 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 4563e50cbdde..586f30e2cec8 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -1059,6 +1059,8 @@ struct radeon_power_state { | |||
1059 | 1059 | ||
1060 | struct radeon_pm { | 1060 | struct radeon_pm { |
1061 | struct mutex mutex; | 1061 | struct mutex mutex; |
1062 | /* write locked while reprogramming mclk */ | ||
1063 | struct rw_semaphore mclk_lock; | ||
1062 | u32 active_crtcs; | 1064 | u32 active_crtcs; |
1063 | int active_crtc_count; | 1065 | int active_crtc_count; |
1064 | int req_vblank; | 1066 | int req_vblank; |
@@ -1554,7 +1556,6 @@ struct radeon_device { | |||
1554 | struct work_struct audio_work; | 1556 | struct work_struct audio_work; |
1555 | int num_crtc; /* number of crtcs */ | 1557 | int num_crtc; /* number of crtcs */ |
1556 | struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */ | 1558 | struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */ |
1557 | struct mutex vram_mutex; | ||
1558 | bool audio_enabled; | 1559 | bool audio_enabled; |
1559 | struct r600_audio audio_status; /* audio stuff */ | 1560 | struct r600_audio audio_status; /* audio stuff */ |
1560 | struct notifier_block acpi_nb; | 1561 | struct notifier_block acpi_nb; |