diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-02-01 16:02:25 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-08 18:32:25 -0500 |
commit | 18917b60bca094e7830e4046e336d024f73f1c90 (patch) | |
tree | b4014b7c07e2dc720c29b55077327c8067e4ccb5 /drivers/gpu/drm/radeon/radeon.h | |
parent | 44224c3f455886190b101dbb00befbaff5e98466 (diff) |
drm/radeon/kms: consolidate crtc count in rdev
Set the number of crtcs in rdev at crtc init and use it
whenever we need the crtc count rather than recalculating
it everytime.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 88113f756ab7..29ae3839c212 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h | |||
@@ -829,6 +829,7 @@ struct radeon_device { | |||
829 | struct r600_ih ih; /* r6/700 interrupt ring */ | 829 | struct r600_ih ih; /* r6/700 interrupt ring */ |
830 | struct workqueue_struct *wq; | 830 | struct workqueue_struct *wq; |
831 | struct work_struct hotplug_work; | 831 | struct work_struct hotplug_work; |
832 | int num_crtc; /* number of crtcs */ | ||
832 | struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */ | 833 | struct mutex dc_hw_i2c_mutex; /* display controller hw i2c mutex */ |
833 | 834 | ||
834 | /* audio stuff */ | 835 | /* audio stuff */ |