]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: remove HAS_RUNTIME_PM check from RPM get/put/assert helpers
authorImre Deak <imre.deak@intel.com>
Thu, 17 Dec 2015 11:48:51 +0000 (13:48 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Dec 2015 13:59:43 +0000 (15:59 +0200)
commitd1d25fe7c72415c19d4d81cd87b3ee391548c333
tree06f8b5bd22cc81d7992e2d99e8c61681668a9731
parent1e5f97fc552246a7c267846a582e19c3425fc79a
drm/i915: remove HAS_RUNTIME_PM check from RPM get/put/assert helpers

We don't really need to check this flag in the get/put/assert helpers,
as on platforms without RPM support we won't ever enable RPM. That means
pm.suspend will be always false and the assert will be always true.

Do this to simplify the code and to let us extend the RPM asserts to all
platforms for a better coverage.

Motivated by Ville.

v2-v3:
- unchanged
v4:
- remove the HAS_RUNTIME_PM check from intel_runtime_pm_enable() too
  made possible by the previous two patches
v5:
- rebased on the previous new patch in the series that keeps
  HAS_RUNTIME_PM() in intel_runtime_pm_enable() with a permanent
  reference taken there

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v3)
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450352931-16498-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c
drivers/gpu/drm/i915/intel_uncore.c