]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Introduce release_pd_entry
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 5 Jul 2019 21:52:04 +0000 (22:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 6 Jul 2019 09:21:31 +0000 (10:21 +0100)
commite6995125bdd5fdea0f351b77c652551b4bd62915
treebc4544bbec38cc1ec5a6fda7f5bd5a459378a185
parent02d385e467b591e43e4efa3cf2672b146c2a89f8
drm/i915/gtt: Introduce release_pd_entry

By encapsulating the locking upper level and used check for entry
into a helper function, we can use it in all callsites.

v2: get rid of atomic_reads on lower level clears (Chris)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190705215204.4559-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c