]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Drop uncore spinlock for reading debugfs forcewake counters
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Mar 2017 10:19:44 +0000 (10:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Mar 2017 10:22:05 +0000 (10:22 +0000)
commit7c0ce00742a2637e5979cb98e8f97d4b392f682b
tree5af901696b74a6b0c893d8ea8fd8d2f89b247848
parent79c6dfc5fdfe1cb8198b894a1fd4cbe63d1f7f53
drm/i915: Drop uncore spinlock for reading debugfs forcewake counters

The set of available structs is not protected by the spinlock, and for
the single read we can use READ_ONCE instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170323101944.21627-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c