diff options
| author | Shuah Khan <[email protected]> | 2021-02-27 00:06:59 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2021-03-06 11:51:10 +0000 |
| commit | f8cfa46608f8aa5ca5421ce281ab314129c15411 (patch) | |
| tree | 703f0fc736b829b122a3cf548169bfee1963bdaa /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | |
| parent | lockdep: Add lockdep_assert_not_held() (diff) | |
| download | kernel-f8cfa46608f8aa5ca5421ce281ab314129c15411.tar.gz kernel-f8cfa46608f8aa5ca5421ce281ab314129c15411.zip | |
lockdep: Add lockdep lock state defines
Adds defines for lock state returns from lock_is_held_type() based on
Johannes Berg's suggestions as it make it easier to read and maintain
the lock states. These are defines and a enum to avoid changes to
lock_is_held_type() and lockdep_is_held() return types.
Updates to lock_is_held_type() and __lock_is_held() to use the new
defines.
Signed-off-by: Shuah Khan <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/linux-wireless/[email protected]/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions
