search for: pm_runtime_set_act

Displaying 2 results from an estimated 2 matches for "pm_runtime_set_act".

2014 Mar 19
2
[PATCH] drm: compute runpm on load, don't register autosuspend for non-runpm
...-443,7 +447,7 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags) nouveau_accel_init(drm); nouveau_fbcon_init(dev); - if (nouveau_runtime_pm != 0) { + if (nouveau_runtime_pm) { pm_runtime_use_autosuspend(dev->dev); pm_runtime_set_autosuspend_delay(dev->dev, 5000); pm_runtime_set_active(dev->dev); @@ -894,12 +898,6 @@ static int nouveau_pmops_runtime_suspend(struct device *dev) if (nouveau_runtime_pm == 0) return -EINVAL; - /* are we optimus enabled? */ - if (nouveau_runtime_pm == -1 && !nouveau_is_optimus() && !nouveau_is_v1_dsm()) { - DRM_DEBUG_DRIV...
2014 Mar 19
0
[PATCH] drm: compute runpm on load, don't register autosuspend for non-runpm
...accel_init(drm); > nouveau_fbcon_init(dev); > > - if (nouveau_runtime_pm != 0) { > + if (nouveau_runtime_pm) { > pm_runtime_use_autosuspend(dev->dev); > pm_runtime_set_autosuspend_delay(dev->dev, 5000); > pm_runtime_set_active(dev->dev); > @@ -894,12 +898,6 @@ static int nouveau_pmops_runtime_suspend(struct device *dev) > if (nouveau_runtime_pm == 0) > return -EINVAL; > > - /* are we optimus enabled? */ > - if (nouveau_runtime_pm == -1 && !nouveau_is_opt...