Re: [PATCH v5 6/7] arm_pmu: Introduce pmu_irq_ops

2020-06-19 Thread Stephen Boyd
Quoting Alexandru Elisei (2020-06-18 03:51:24) > Hi, > > On 6/17/20 9:23 PM, Stephen Boyd wrote: > > Quoting Alexandru Elisei (2020-06-17 04:38:50) > >> diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c > >> index df352b334ea7..17e5952d21e4 100644 > >> --- a/drivers/perf/arm_pmu.c > >>

Re: [PATCH v5 6/7] arm_pmu: Introduce pmu_irq_ops

2020-06-18 Thread Alexandru Elisei
Hi, On 6/17/20 9:23 PM, Stephen Boyd wrote: > Quoting Alexandru Elisei (2020-06-17 04:38:50) >> diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c >> index df352b334ea7..17e5952d21e4 100644 >> --- a/drivers/perf/arm_pmu.c >> +++ b/drivers/perf/arm_pmu.c >> @@ -26,8 +26,46 @@ >> >> #in

Re: [PATCH v5 6/7] arm_pmu: Introduce pmu_irq_ops

2020-06-17 Thread Stephen Boyd
Quoting Alexandru Elisei (2020-06-17 04:38:50) > diff --git a/drivers/perf/arm_pmu.c b/drivers/perf/arm_pmu.c > index df352b334ea7..17e5952d21e4 100644 > --- a/drivers/perf/arm_pmu.c > +++ b/drivers/perf/arm_pmu.c > @@ -26,8 +26,46 @@ > > #include > > +static int armpmu_count_irq_users(const

[PATCH v5 6/7] arm_pmu: Introduce pmu_irq_ops

2020-06-17 Thread Alexandru Elisei
From: Julien Thierry Currently the PMU interrupt can either be a normal irq or a percpu irq. Supporting NMI will introduce two cases for each existing one. It becomes a mess of 'if's when managing the interrupt. Define sets of callbacks for operations commonly done on the interrupt. The appropri