All of lore.kernel.org
 help / color / mirror / Atom feed
From: will.deacon@arm.com (Will Deacon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 7/8] arm_pmu: note IRQs and PMUs per-cpu
Date: Wed, 14 Feb 2018 13:26:41 +0000	[thread overview]
Message-ID: <20180214132640.GG2992@arm.com> (raw)
In-Reply-To: <20180214132416.hragqjcsrvzes5jp@lakrids.cambridge.arm.com>

On Wed, Feb 14, 2018 at 01:24:17PM +0000, Mark Rutland wrote:
> On Wed, Feb 14, 2018 at 01:11:41PM +0000, Will Deacon wrote:
> > On Mon, Feb 05, 2018 at 04:42:01PM +0000, Mark Rutland wrote:
> > > @@ -560,16 +577,16 @@ int armpmu_request_irq(struct arm_pmu *armpmu, int cpu)
> > >  
> > >  		irq_set_status_flags(irq, IRQ_NOAUTOEN);
> > >  		err = request_irq(irq, handler, irq_flags, "arm-pmu",
> > > -				  per_cpu_ptr(&hw_events->percpu_pmu, cpu));
> > > -	} else if (cpumask_empty(&armpmu->active_irqs)) {
> > > +				  NULL);
> > > +	} else if (armpmu_count_irq_users(irq) == 0) {
> > >  		err = request_percpu_irq(irq, handler, "arm-pmu",
> > > -					 &hw_events->percpu_pmu);
> > > +					 cpu_armpmu);
> > 
> > This should be &cpu_armpmu.
> 
> I'm not sure that's the case, given the way we statically define
> cpu_armpmu, but I'll try to figure that out.

Well that's what you pass to free_percpu_irq :p

> > Would it be possible to pass &cpu_armpmu as the devid even in the normal
> > request_irq case and have the dispatcher just pass it through to the
> > underlying handler, rather than access cpu_armpmu directly?
> 
> Do you mean so that the dispatcher takes a struct arm_pmu ** in all
> cases?

Yes.

Will

  reply	other threads:[~2018-02-14 13:26 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-05 16:41 [PATCHv2 0/8] arm_pmu: fix lockdep issues with ACPI systems Mark Rutland
2018-02-05 16:41 ` [PATCHv2 1/8] ARM: ux500: remove PMU IRQ bouncer Mark Rutland
2018-02-05 19:05   ` Linus Walleij
2018-02-06 11:26     ` Mark Rutland
2018-02-05 16:41 ` [PATCHv2 2/8] arm_pmu: kill arm_pmu_platdata Mark Rutland
2018-02-05 16:41 ` [PATCHv2 3/8] arm_pmu: fold platform helpers into platform code Mark Rutland
2018-02-05 16:41 ` [PATCHv2 4/8] arm_pmu: add armpmu_alloc_atomic() Mark Rutland
2018-02-05 16:41 ` [PATCHv2 5/8] arm_pmu: acpi: check for mismatched PPIs Mark Rutland
2018-02-05 16:42 ` [PATCHv2 6/8] arm_pmu: explicitly enable/disable SPIs at hotplug Mark Rutland
2018-02-26 15:16   ` Geert Uytterhoeven
2018-02-26 15:16     ` Geert Uytterhoeven
2018-02-26 15:22     ` Will Deacon
2018-02-26 15:22       ` Will Deacon
2018-02-26 15:56       ` Geert Uytterhoeven
2018-02-26 15:56         ` Geert Uytterhoeven
2018-02-26 16:01       ` Mark Rutland
2018-02-26 16:01         ` Mark Rutland
2018-02-05 16:42 ` [PATCHv2 7/8] arm_pmu: note IRQs and PMUs per-cpu Mark Rutland
2018-02-05 17:07   ` Robin Murphy
2018-02-05 17:13     ` Mark Rutland
2018-02-14 13:11   ` Will Deacon
2018-02-14 13:24     ` Mark Rutland
2018-02-14 13:26       ` Will Deacon [this message]
2018-02-14 13:45         ` Mark Rutland
2018-02-14 18:22         ` Mark Rutland
2018-02-05 16:42 ` [PATCHv2 8/8] arm_pmu: acpi: request IRQs up-front Mark Rutland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180214132640.GG2992@arm.com \
    --to=will.deacon@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.