]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add a spinlock to protect the active_list
authorCarl Worth <cworth@cworth.org>
Fri, 20 Mar 2009 18:54:25 +0000 (11:54 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2009 22:22:07 +0000 (15:22 -0700)
commit9a7a3e1933136f076f72dcbfb4d4586b39ee0f5a
treea4d73fb1bb51083ab95b6167c6a8c621f6245a63
parent3a5aecca5d1c39e31cb69ef3579ab1f97432ed9a
drm/i915: Add a spinlock to protect the active_list

This is a baby-step in the direction of having finer-grained
locking than the struct_mutex. Specifically, this will enable
new debugging code to read the active list for printing out
GPU state when the GPU is wedged, (while the struct_mutex is
held, of course).

Signed-off-by: Carl Worth <cworth@cworth.org>
[anholt: indentation fix]
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_debug.c
drivers/gpu/drm/i915/i915_gem_debugfs.c