summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <joro@8bytes.org>2013-04-09 21:14:08 +0200
committerJoerg Roedel <joro@8bytes.org>2013-04-18 17:21:28 +0200
commit197887f03daecdb3ae21bafeb4155412abad3497 (patch)
tree951fa773dffe67f60ca3051003144966031c1bbd /drivers/iommu
parentiommu/amd: Use AMD specific data structure for irq remapping (diff)
downloadlinux-197887f03daecdb3ae21bafeb4155412abad3497.tar.xz
linux-197887f03daecdb3ae21bafeb4155412abad3497.zip
iommu/amd: Properly initialize irq-table lock
Fixes a lockdep warning. Cc: stable@vger.kernel.org # >= v3.7 Reviewed-by: Shuah Khan <shuahkhan@gmail.com> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/amd_iommu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index b05599dd2c43..f42793d1574d 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -3930,6 +3930,9 @@ static struct irq_remap_table *get_irq_table(u16 devid, bool ioapic)
if (!table)
goto out;
+ /* Initialize table spin-lock */
+ spin_lock_init(&table->lock);
+
if (ioapic)
/* Keep the first 32 indexes free for IOAPIC interrupts */
table->min_index = 32;