mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
iommu/amd: Remove redundant check in irq_remapping_select()
The amd_iommu_irq_remap flag is already validated during irq remapping domain creation (before calling amd_iommu_create_irq_domain()). The duplicate check in irq_remapping_select() is unnecessary and can be removed. Additionally, mark amd_iommu_irq_remap as static. No functional changes. Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
798514a255
commit
5e1afd4ea1
|
|
@ -434,9 +434,6 @@ struct irq_remap_table {
|
|||
u32 *table;
|
||||
};
|
||||
|
||||
/* Interrupt remapping feature used? */
|
||||
extern bool amd_iommu_irq_remap;
|
||||
|
||||
extern const struct iommu_ops amd_iommu_ops;
|
||||
|
||||
/* IVRS indicates that pre-boot remapping was enabled */
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ struct ivmd_header {
|
|||
} __attribute__((packed));
|
||||
|
||||
bool amd_iommu_dump;
|
||||
bool amd_iommu_irq_remap __read_mostly;
|
||||
static bool amd_iommu_irq_remap __read_mostly;
|
||||
|
||||
enum protection_domain_mode amd_iommu_pgtable = PD_MODE_V1;
|
||||
/* Virtual address size */
|
||||
|
|
|
|||
|
|
@ -3976,9 +3976,6 @@ static int irq_remapping_select(struct irq_domain *d, struct irq_fwspec *fwspec,
|
|||
struct amd_iommu *iommu;
|
||||
int devid = -1;
|
||||
|
||||
if (!amd_iommu_irq_remap)
|
||||
return 0;
|
||||
|
||||
if (x86_fwspec_is_ioapic(fwspec))
|
||||
devid = get_ioapic_devid(fwspec->param[0]);
|
||||
else if (x86_fwspec_is_hpet(fwspec))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user