iommu/amd: WARN when __[attach|detach]_device are called with irqs enabled
authorJoerg Roedel <jroedel@suse.de>
Tue, 20 Oct 2015 15:33:37 +0000 (17:33 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Oct 2015 09:29:27 +0000 (11:29 +0200)
commit272e4f99e966989394b167b695ab489c60fe1243
tree968b6a285de4555ccd870500f0c46b330062b5c8
parentf1dd0a8bcd67e34537fe02fa9cda15aa46368d11
iommu/amd: WARN when __[attach|detach]_device are called with irqs enabled

These functions rely on being called with IRQs disabled. Add
a WARN_ON to detect early when its not.

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