linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] perf: dsu: Allow multiple devices share same IRQ.
@ 2020-03-18  0:26 Tuan Phan
  2020-03-18 20:57 ` Will Deacon
  2020-03-19 14:32 ` Mark Rutland
  0 siblings, 2 replies; 5+ messages in thread
From: Tuan Phan @ 2020-03-18  0:26 UTC (permalink / raw)
  Cc: Mark Rutland, patches, Will Deacon, linux-kernel,
	linux-arm-kernel

Add IRQF_SHARED flag when register IRQ such that multiple dsu
devices can share same IRQ.

Signed-off-by: Tuan Phan <tuanphan@os.amperecomputing.com>
---
 drivers/perf/arm_dsu_pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c
index 70968c8..2622900 100644
--- a/drivers/perf/arm_dsu_pmu.c
+++ b/drivers/perf/arm_dsu_pmu.c
@@ -700,7 +700,7 @@ static int dsu_pmu_device_probe(struct platform_device *pdev)
 	if (!name)
 		return -ENOMEM;
 	rc = devm_request_irq(&pdev->dev, irq, dsu_pmu_handle_irq,
-			      IRQF_NOBALANCING, name, dsu_pmu);
+			      IRQF_NOBALANCING | IRQF_SHARED, name, dsu_pmu);
 	if (rc) {
 		dev_warn(&pdev->dev, "Failed to request IRQ %d\n", irq);
 		return rc;
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-19 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-18  0:26 [PATCH 1/2] perf: dsu: Allow multiple devices share same IRQ Tuan Phan
2020-03-18 20:57 ` Will Deacon
2020-03-19 14:32 ` Mark Rutland
2020-03-19 14:35   ` Mark Rutland
2020-03-19 16:12     ` Robin Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).