aboutsummaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorGravatar Chris Wilson <chris@chris-wilson.co.uk> 2014-07-24 13:28:44 +0100
committerGravatar Daniel Vetter <daniel.vetter@ffwll.ch> 2014-07-25 09:39:03 +0200
commit487777673e355ab9f0b7cac4ad1207be9d36156f (patch)
treeb2c01d7ddc8a9ad5bf9b560ea962f38782b83b62 /include/drm
parentdrm/i915: Allow overlapping userptr objects (diff)
downloadlinux-487777673e355ab9f0b7cac4ad1207be9d36156f.tar.gz
linux-487777673e355ab9f0b7cac4ad1207be9d36156f.tar.bz2
linux-487777673e355ab9f0b7cac4ad1207be9d36156f.zip
drm/i915/userptr: Keep spin_lock/unlock in the same block
Move the code around in order to acquire and release the spinlock in the same function and in the same block. This keeps static analysers happy and the reader sane. Suggested-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions