diff options
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index c2676b5908d9..ec5c3f4cdd01 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -156,7 +156,7 @@ static void vblank_disable_and_save(struct drm_device *dev, int crtc) | |||
156 | */ | 156 | */ |
157 | if ((vblrc > 0) && (abs64(diff_ns) > 1000000)) { | 157 | if ((vblrc > 0) && (abs64(diff_ns) > 1000000)) { |
158 | atomic_inc(&dev->vblank[crtc].count); | 158 | atomic_inc(&dev->vblank[crtc].count); |
159 | smp_mb__after_atomic_inc(); | 159 | smp_mb__after_atomic(); |
160 | } | 160 | } |
161 | 161 | ||
162 | /* Invalidate all timestamps while vblank irq's are off. */ | 162 | /* Invalidate all timestamps while vblank irq's are off. */ |
@@ -864,9 +864,9 @@ static void drm_update_vblank_count(struct drm_device *dev, int crtc) | |||
864 | vblanktimestamp(dev, crtc, tslot) = t_vblank; | 864 | vblanktimestamp(dev, crtc, tslot) = t_vblank; |
865 | } | 865 | } |
866 | 866 | ||
867 | smp_mb__before_atomic_inc(); | 867 | smp_mb__before_atomic(); |
868 | atomic_add(diff, &dev->vblank[crtc].count); | 868 | atomic_add(diff, &dev->vblank[crtc].count); |
869 | smp_mb__after_atomic_inc(); | 869 | smp_mb__after_atomic(); |
870 | } | 870 | } |
871 | 871 | ||
872 | /** | 872 | /** |
@@ -1330,9 +1330,9 @@ bool drm_handle_vblank(struct drm_device *dev, int crtc) | |||
1330 | /* Increment cooked vblank count. This also atomically commits | 1330 | /* Increment cooked vblank count. This also atomically commits |
1331 | * the timestamp computed above. | 1331 | * the timestamp computed above. |
1332 | */ | 1332 | */ |
1333 | smp_mb__before_atomic_inc(); | 1333 | smp_mb__before_atomic(); |
1334 | atomic_inc(&dev->vblank[crtc].count); | 1334 | atomic_inc(&dev->vblank[crtc].count); |
1335 | smp_mb__after_atomic_inc(); | 1335 | smp_mb__after_atomic(); |
1336 | } else { | 1336 | } else { |
1337 | DRM_DEBUG("crtc %d: Redundant vblirq ignored. diff_ns = %d\n", | 1337 | DRM_DEBUG("crtc %d: Redundant vblirq ignored. diff_ns = %d\n", |
1338 | crtc, (int) diff_ns); | 1338 | crtc, (int) diff_ns); |