drm/i915/pmu: Initialise our dynamic sysfs attributes for use with lockdep
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Jan 2018 14:04:02 +0000 (14:04 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Jan 2018 14:57:25 +0000 (14:57 +0000)
commit2bbba4e94eb987701abcacae241929fd13a196b2
tree460fb47858b08da211c3d85c6ee4dca674b19909
parent109ec558370f78143509d9ebb6c26e19de1f1fb9
drm/i915/pmu: Initialise our dynamic sysfs attributes for use with lockdep

As we kmalloc our dynamic sysfs attributes, we have to give them an
external static lock_class_key for them to use with lockdep.

Fixes: 109ec558370f ("drm/i915/pmu: Only enumerate available counters in sysfs")
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/20180111140402.3984-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_pmu.c