diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2019-10-04 10:17:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-17 10:50:23 +0200 |
commit | dcf2f00b0869bd7412481bc865e2f4d567fc55f8 (patch) | |
tree | e6619a518dade4d473342fc9809737b17a2ece95 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | fddfa591da8e0829ab7ebde8f8efb9b87f01f14a (diff) |
dm clone: replace spin_lock_irqsave with spin_lock_irq
[ Upstream commit 6ca43ed8376a51afec790dd484a51804ade4352a ]
If we are in a place where it is known that interrupts are enabled,
functions spin_lock_irq/spin_unlock_irq should be used instead of
spin_lock_irqsave/spin_unlock_irqrestore.
spin_lock_irq and spin_unlock_irq are faster because they don't need to
push and pop the flags register.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Nikos Tsironis <ntsironis@arrikto.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions