]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
iommu/amd: Remove the special case from alloc_irq_table()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Mar 2018 15:22:37 +0000 (16:22 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 08:38:15 +0000 (10:38 +0200)
commitfde65dd3d3096e8f6ecc7bbe544eb91f4220772c
tree8ca05a6157fe2473a646f5e27a4585b4ca562aeb
parentea6166f4b83e9cfba1c18f46a764d50045682fe5
iommu/amd: Remove the special case from alloc_irq_table()

alloc_irq_table() has a special ioapic argument. If set then it will
pre-allocate / reserve the first 32 indexes. The argument is only once
true and it would make alloc_irq_table() a little simpler if we would
extract the special bits to the caller.
The caller of irq_remapping_alloc() is holding irq_domain_mutex so the
initialization of iommu->irte_ops->set_allocated() should not race
against other user.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c