Skip to content

Commit 8484567

Browse files
committed
perf/smmuv3: Use msi_get_virq()
Let the core code fiddle with the MSI descriptor retrieval. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f6632bb commit 8484567

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/perf/arm_smmuv3_pmu.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ static void smmu_pmu_write_msi_msg(struct msi_desc *desc, struct msi_msg *msg)
684684

685685
static void smmu_pmu_setup_msi(struct smmu_pmu *pmu)
686686
{
687-
struct msi_desc *desc;
688687
struct device *dev = pmu->dev;
689688
int ret;
690689

@@ -701,9 +700,7 @@ static void smmu_pmu_setup_msi(struct smmu_pmu *pmu)
701700
return;
702701
}
703702

704-
desc = first_msi_entry(dev);
705-
if (desc)
706-
pmu->irq = desc->irq;
703+
pmu->irq = msi_get_virq(dev, 0);
707704

708705
/* Add callback to free MSIs on teardown */
709706
devm_add_action(dev, smmu_pmu_free_msis, dev);

0 commit comments

Comments
 (0)