[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1584491176-31358-1-git-send-email-tuanphan@os.amperecomputing.com>
Date: Tue, 17 Mar 2020 17:26:15 -0700
From: Tuan Phan <tuanphan@...amperecomputing.com>
To: unlisted-recipients:; (no To-header on input)
Cc: patches@...erecomputing.com, Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] perf: dsu: Allow multiple devices share same IRQ.
Add IRQF_SHARED flag when register IRQ such that multiple dsu
devices can share same IRQ.
Signed-off-by: Tuan Phan <tuanphan@...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
Powered by blists - more mailing lists