]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pmu: Remove !CONFIG_PM code
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 14 Dec 2020 09:43:49 +0000 (09:43 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 14 Dec 2020 12:55:51 +0000 (12:55 +0000)
commitb06930172f12626aea48361dac32bbac543a1af5
tree833a5c6f95f3f7c38bc5046613fd95c40c59c220
parent37ae5c4e4e73a56c5d838aa0a82ff209b0e8a16d
drm/i915/pmu: Remove !CONFIG_PM code

Chris spotted that since 37d95c702e0a ("drm/i915/pmu: Use GT parked for
estimating RC6 while asleep") we don't rely on runtime pm internals when
estimating RC6 while asleep. We can remove the ifdef code to simplify and
at the same time wake up the device less when querying RC6 if CONFIG_PM is
not compiled in.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
References: 37d95c702e0a ("drm/i915/pmu: Use GT parked for estimating RC6 while asleep")
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201214094349.3563876-3-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_pmu.c