|
@@ -528,10 +528,10 @@ nouveau_fbcon_set_suspend(struct drm_device *dev, int state)
|
|
struct nouveau_drm *drm = nouveau_drm(dev);
|
|
struct nouveau_drm *drm = nouveau_drm(dev);
|
|
if (drm->fbcon) {
|
|
if (drm->fbcon) {
|
|
console_lock();
|
|
console_lock();
|
|
- if (state == 0)
|
|
|
|
|
|
+ if (state == 1)
|
|
nouveau_fbcon_save_disable_accel(dev);
|
|
nouveau_fbcon_save_disable_accel(dev);
|
|
fb_set_suspend(drm->fbcon->helper.fbdev, state);
|
|
fb_set_suspend(drm->fbcon->helper.fbdev, state);
|
|
- if (state == 1)
|
|
|
|
|
|
+ if (state == 0)
|
|
nouveau_fbcon_restore_accel(dev);
|
|
nouveau_fbcon_restore_accel(dev);
|
|
console_unlock();
|
|
console_unlock();
|
|
}
|
|
}
|