drm/nouveau/kms: remove call to drm_crtc_vblank_off() during unload/suspend
These on()/off() calls should be done as a result of modesetting actions, and as we shut down all heads already on unload/suspend, it's pointless to call off() again. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
4a5431af19
commit
746c842d1f
|
@ -409,7 +409,6 @@ nouveau_display_fini(struct drm_device *dev, bool suspend)
|
||||||
struct nouveau_display *disp = nouveau_display(dev);
|
struct nouveau_display *disp = nouveau_display(dev);
|
||||||
struct nouveau_drm *drm = nouveau_drm(dev);
|
struct nouveau_drm *drm = nouveau_drm(dev);
|
||||||
struct drm_connector *connector;
|
struct drm_connector *connector;
|
||||||
struct drm_crtc *crtc;
|
|
||||||
|
|
||||||
if (!suspend) {
|
if (!suspend) {
|
||||||
if (drm_drv_uses_atomic_modeset(dev))
|
if (drm_drv_uses_atomic_modeset(dev))
|
||||||
|
@ -418,10 +417,6 @@ nouveau_display_fini(struct drm_device *dev, bool suspend)
|
||||||
drm_crtc_force_disable_all(dev);
|
drm_crtc_force_disable_all(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make sure that drm and hw vblank irqs get properly disabled. */
|
|
||||||
drm_for_each_crtc(crtc, dev)
|
|
||||||
drm_crtc_vblank_off(crtc);
|
|
||||||
|
|
||||||
/* disable flip completion events */
|
/* disable flip completion events */
|
||||||
nvif_notify_put(&drm->flip);
|
nvif_notify_put(&drm->flip);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue