diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_cursor.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cursor.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cursor.c b/drivers/gpu/drm/radeon/radeon_cursor.c index ad6df625e8b8..c1680e6d76ad 100644 --- a/drivers/gpu/drm/radeon/radeon_cursor.c +++ b/drivers/gpu/drm/radeon/radeon_cursor.c | |||
@@ -245,8 +245,14 @@ int radeon_crtc_cursor_move(struct drm_crtc *crtc, | |||
245 | int i = 0; | 245 | int i = 0; |
246 | struct drm_crtc *crtc_p; | 246 | struct drm_crtc *crtc_p; |
247 | 247 | ||
248 | /* avivo cursor image can't end on 128 pixel boundary or | 248 | /* |
249 | * avivo cursor image can't end on 128 pixel boundary or | ||
249 | * go past the end of the frame if both crtcs are enabled | 250 | * go past the end of the frame if both crtcs are enabled |
251 | * | ||
252 | * NOTE: It is safe to access crtc->enabled of other crtcs | ||
253 | * without holding either the mode_config lock or the other | ||
254 | * crtc's lock as long as write access to this flag _always_ | ||
255 | * grabs all locks. | ||
250 | */ | 256 | */ |
251 | list_for_each_entry(crtc_p, &crtc->dev->mode_config.crtc_list, head) { | 257 | list_for_each_entry(crtc_p, &crtc->dev->mode_config.crtc_list, head) { |
252 | if (crtc_p->enabled) | 258 | if (crtc_p->enabled) |