commit | 2bc00180890427dcc092b2f2b0d03c904bcade29 | [log] [tgz] |
---|---|---|
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | Thu Mar 22 16:22:35 2018 +0100 |
committer | Joerg Roedel <jroedel@suse.de> | Thu Mar 29 10:38:15 2018 +0200 |
tree | 5cf7d4442c55b5b062e928a0d85aeea69d9d8ac2 | |
parent | 779da73273fc4c4c6f41579a95e4fb7880a1720e [diff] |
iommu/amd: Split domain id out of amd_iommu_devtable_lock domain_id_alloc() and domain_id_free() is used for id management. Those two function share a bitmap (amd_iommu_pd_alloc_bitmap) and set/clear bits based on id allocation. There is no need to share this with amd_iommu_devtable_lock, it can use its own lock for this operation. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Joerg Roedel <jroedel@suse.de>