aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2018-12-28 06:02:00 +0100
committerIngo Molnar <[email protected]>2019-01-21 11:18:54 +0100
commit436a49ae7b693161c4fdf98b575ef16243dc2dfa (patch)
tree8d073f826200a62c6993664b0718e062c75419fc /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
parentb5a4e2bb0f4c86bfeb38df3e1d5b2f1272f0e673 (diff)
locking/lockdep: Simplify mark_held_locks()
The enum mark_type appears a bit artificial here. We can directly pass the base enum lock_usage_bit value to mark_held_locks(). All we need then is to add the read index for each lock if necessary. It makes the code clearer. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
0 files changed, 0 insertions, 0 deletions