drm/nouveau: fix suspend/resume on GPUs that don't have PM support
This has been broken since 2.6.37, and fixes resume on a couple of fermi boards I have access to. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Родитель
b8884da611
Коммит
317495b25e
|
@ -543,7 +543,7 @@ nouveau_pm_resume(struct drm_device *dev)
|
||||||
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
|
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
|
||||||
struct nouveau_pm_level *perflvl;
|
struct nouveau_pm_level *perflvl;
|
||||||
|
|
||||||
if (pm->cur == &pm->boot)
|
if (!pm->cur || pm->cur == &pm->boot)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
perflvl = pm->cur;
|
perflvl = pm->cur;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче