drm/i915: Move on the new pm runtime interface
authorVincent Guittot <vincent.guittot@linaro.org>
Fri, 21 Dec 2018 10:33:55 +0000 (11:33 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Jan 2019 21:47:24 +0000 (22:47 +0100)
commit3b4ed2e2eb5583774a1ed4aa4596a5a3c55f2567
tree8caad7c24e1194cb142ec581a9eaee4220703f02
parent8a62ffe2753a845272f4f2100b5fca0b6053ff6f
drm/i915: Move on the new pm runtime interface

Use the new PM-runtime interface to get the accounted suspended time:
pm_runtime_suspended_time().

This new interface helps to simplify and cleanup the code that computes
__I915_SAMPLE_RC6_ESTIMATED and to remove direct access to internals of
PM-runtime.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/gpu/drm/i915/i915_pmu.c
drivers/gpu/drm/i915/i915_pmu.h