diff options
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
| -rw-r--r-- | drivers/gpu/drm/drm_irq.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 5ef03c216a27..f5a5f18efa5b 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
| @@ -166,7 +166,7 @@ static void vblank_disable_and_save(struct drm_device *dev, int crtc) | |||
| 166 | spin_lock_irqsave(&dev->vblank_time_lock, irqflags); | 166 | spin_lock_irqsave(&dev->vblank_time_lock, irqflags); |
| 167 | 167 | ||
| 168 | /* | 168 | /* |
| 169 | * If the vblank interrupt was already disbled update the count | 169 | * If the vblank interrupt was already disabled update the count |
| 170 | * and timestamp to maintain the appearance that the counter | 170 | * and timestamp to maintain the appearance that the counter |
| 171 | * has been ticking all along until this time. This makes the | 171 | * has been ticking all along until this time. This makes the |
| 172 | * count account for the entire time between drm_vblank_on() and | 172 | * count account for the entire time between drm_vblank_on() and |
| @@ -1029,7 +1029,8 @@ void drm_vblank_put(struct drm_device *dev, int crtc) | |||
| 1029 | { | 1029 | { |
| 1030 | struct drm_vblank_crtc *vblank = &dev->vblank[crtc]; | 1030 | struct drm_vblank_crtc *vblank = &dev->vblank[crtc]; |
| 1031 | 1031 | ||
| 1032 | BUG_ON(atomic_read(&vblank->refcount) == 0); | 1032 | if (WARN_ON(atomic_read(&vblank->refcount) == 0)) |
| 1033 | return; | ||
| 1033 | 1034 | ||
| 1034 | if (WARN_ON(crtc >= dev->num_crtcs)) | 1035 | if (WARN_ON(crtc >= dev->num_crtcs)) |
| 1035 | return; | 1036 | return; |
| @@ -1190,7 +1191,7 @@ EXPORT_SYMBOL(drm_crtc_vblank_off); | |||
| 1190 | * | 1191 | * |
| 1191 | * This functions restores the vblank interrupt state captured with | 1192 | * This functions restores the vblank interrupt state captured with |
| 1192 | * drm_vblank_off() again. Note that calls to drm_vblank_on() and | 1193 | * drm_vblank_off() again. Note that calls to drm_vblank_on() and |
| 1193 | * drm_vblank_off() can be unbalanced and so can also be unconditionaly called | 1194 | * drm_vblank_off() can be unbalanced and so can also be unconditionally called |
| 1194 | * in driver load code to reflect the current hardware state of the crtc. | 1195 | * in driver load code to reflect the current hardware state of the crtc. |
| 1195 | * | 1196 | * |
| 1196 | * This is the legacy version of drm_crtc_vblank_on(). | 1197 | * This is the legacy version of drm_crtc_vblank_on(). |
| @@ -1237,7 +1238,7 @@ EXPORT_SYMBOL(drm_vblank_on); | |||
| 1237 | * | 1238 | * |
| 1238 | * This functions restores the vblank interrupt state captured with | 1239 | * This functions restores the vblank interrupt state captured with |
| 1239 | * drm_vblank_off() again. Note that calls to drm_vblank_on() and | 1240 | * drm_vblank_off() again. Note that calls to drm_vblank_on() and |
| 1240 | * drm_vblank_off() can be unbalanced and so can also be unconditionaly called | 1241 | * drm_vblank_off() can be unbalanced and so can also be unconditionally called |
| 1241 | * in driver load code to reflect the current hardware state of the crtc. | 1242 | * in driver load code to reflect the current hardware state of the crtc. |
| 1242 | * | 1243 | * |
| 1243 | * This is the native kms version of drm_vblank_on(). | 1244 | * This is the native kms version of drm_vblank_on(). |
