iommu/amd: Properly initialize irq-table lock

Fixes a lockdep warning.

Cc: [email protected] # >= v3.7
Reviewed-by: Shuah Khan <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
Joerg Roedel 2013-04-09 21:14:08 +02:00
commit 197887f03d

View file

@ -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;