Chris Wilson 4b8b41d15d drm/i915/pmu: Fix building without CONFIG_PM
As we peek inside struct device to query members guarded by CONFIG_PM,
so must be the code.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Fixes: 1fe699e30113 ("drm/i915/pmu: Fix sleep under atomic in RC6 readout")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180207160428.17015-1-chris@chris-wilson.co.uk
(cherry picked from commit 05273c950a3c93c5f96be8807eaf24f2cc9f1c1e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180213095747.2424-4-tvrtko.ursulin@linux.intel.com
2018-02-13 16:56:06 -08:00
..
2017-11-11 11:23:15 +01:00
2018-02-01 11:35:46 +10:00
2017-12-19 21:37:24 +10:00
2018-02-06 09:59:40 -08:00
2018-01-05 11:33:24 +10:00
2017-12-08 10:43:46 +01:00
2018-01-18 09:32:15 +10:00
2017-12-27 19:00:09 -05:00
2018-01-29 23:18:17 -05:00
2017-11-15 20:42:10 -08:00
2018-01-18 09:32:15 +10:00
2017-12-21 11:10:20 +10:00
2017-12-19 21:37:24 +10:00
2017-12-19 21:37:24 +10:00
2017-12-19 21:37:24 +10:00
2017-11-23 12:31:49 +02:00
2018-01-18 09:32:15 +10:00
2017-11-15 20:42:10 -08:00
2018-01-25 11:42:25 +10:00
2018-01-24 15:49:04 -05:00