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>
This commit is contained in:
parent
0dfedd6194
commit
197887f03d
@ -3930,6 +3930,9 @@ static struct irq_remap_table *get_irq_table(u16 devid, bool ioapic)
|
|||||||
if (!table)
|
if (!table)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
/* Initialize table spin-lock */
|
||||||
|
spin_lock_init(&table->lock);
|
||||||
|
|
||||||
if (ioapic)
|
if (ioapic)
|
||||||
/* Keep the first 32 indexes free for IOAPIC interrupts */
|
/* Keep the first 32 indexes free for IOAPIC interrupts */
|
||||||
table->min_index = 32;
|
table->min_index = 32;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user