iommu/amd: Use trylock to aquire bitmap_lock
authorJoerg Roedel <jroedel@suse.de>
Tue, 22 Dec 2015 12:38:12 +0000 (13:38 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 28 Dec 2015 16:18:54 +0000 (17:18 +0100)
commit7b5e25b84eba25e78bce736a5c99649f7ff0f5c2
tree57470efa741c799674b94e21fb7a6e49f06d8e47
parent5f6bed50050625f1b76fa2c0dfd0ce887cb0420a
iommu/amd: Use trylock to aquire bitmap_lock

First search for a non-contended aperture with trylock
before spinning.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c