iommu/amd: Use wait_event in put_pasid_state_wait
authorJoerg Roedel <jroedel@suse.de>
Wed, 4 Feb 2015 14:50:38 +0000 (15:50 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 Feb 2015 14:50:51 +0000 (15:50 +0100)
commita1bec062c90456983225054d39c8a601db48e638
tree2f5cbaa6b73e1b48fce4283b0c4870b2a8426f91
parent91f65facba5add493fffb643acdb258bd9f54eb2
iommu/amd: Use wait_event in put_pasid_state_wait

Now that I learned about possible spurious wakeups this
place needs fixing too. Replace the self-coded sleep variant
with the generic wait_event() helper.

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