linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the arm-perf tree with Linus' and teh arm-current trees
@ 2015-05-29  1:14 Stephen Rothwell
  2015-05-29 10:21 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2015-05-29  1:14 UTC (permalink / raw)
  To: Will Deacon; +Cc: linux-next, linux-kernel, Mark Rutland

[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]

Hi Will,

Today's linux-next merge of the arm-perf tree got a conflict in
arch/arm/kernel/perf_event_cpu.c between commit 338d9dd3e2ae ("ARM:
8351/1: perf: don't warn about missing interrupt-affinity property for
PPIs") from Linus' tree and 8d2812849acb ("ARM: 8357/1: perf: fix
memory leak when probing PMU PPIs") from the arm-current tree and
commit 64d0d3943e14 ("arm: perf: make of_pmu_irq_cfg take arm_pmu")
from the arm-perf tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc arch/arm/kernel/perf_event_cpu.c
index 3b8c2833c537,50f245bf4e05..000000000000
--- a/arch/arm/kernel/perf_event_cpu.c
+++ b/arch/arm/kernel/perf_event_cpu.c
@@@ -301,17 -306,12 +306,18 @@@ static int probe_current_pmu(struct arm
  	return ret;
  }
  
- static int of_pmu_irq_cfg(struct platform_device *pdev)
+ static int of_pmu_irq_cfg(struct arm_pmu *pmu)
  {
 -	int i;
 +	int i, irq;
+ 	struct platform_device *pdev = pmu->plat_device;
 -	int *irqs = kcalloc(pdev->num_resources, sizeof(*irqs), GFP_KERNEL);
 +	int *irqs;
  
 +	/* Don't bother with PPIs; they're already affine */
 +	irq = platform_get_irq(pdev, 0);
 +	if (irq >= 0 && irq_is_percpu(irq))
 +		return 0;
 +
 +	irqs = kcalloc(pdev->num_resources, sizeof(*irqs), GFP_KERNEL);
  	if (!irqs)
  		return -ENOMEM;
  

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: linux-next: manual merge of the arm-perf tree with Linus' and teh arm-current trees
  2015-05-29  1:14 linux-next: manual merge of the arm-perf tree with Linus' and teh arm-current trees Stephen Rothwell
@ 2015-05-29 10:21 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2015-05-29 10:21 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Mark Rutland

On Fri, May 29, 2015 at 02:14:32AM +0100, Stephen Rothwell wrote:
> Today's linux-next merge of the arm-perf tree got a conflict in
> arch/arm/kernel/perf_event_cpu.c between commit 338d9dd3e2ae ("ARM:
> 8351/1: perf: don't warn about missing interrupt-affinity property for
> PPIs") from Linus' tree and 8d2812849acb ("ARM: 8357/1: perf: fix
> memory leak when probing PMU PPIs") from the arm-current tree and
> commit 64d0d3943e14 ("arm: perf: make of_pmu_irq_cfg take arm_pmu")
> from the arm-perf tree.
> 
> I fixed it up (see below) and can carry the fix as necessary (no action
> is required).

Thanks Stephen, looks good to me. I've got some more patches queued which
will actually mean we just remove this file altogether, but this is fine
for now.

Will

> -- 
> Cheers,
> Stephen Rothwell                    sfr@canb.auug.org.au
> 
> diff --cc arch/arm/kernel/perf_event_cpu.c
> index 3b8c2833c537,50f245bf4e05..000000000000
> --- a/arch/arm/kernel/perf_event_cpu.c
> +++ b/arch/arm/kernel/perf_event_cpu.c
> @@@ -301,17 -306,12 +306,18 @@@ static int probe_current_pmu(struct arm
>   	return ret;
>   }
>   
> - static int of_pmu_irq_cfg(struct platform_device *pdev)
> + static int of_pmu_irq_cfg(struct arm_pmu *pmu)
>   {
>  -	int i;
>  +	int i, irq;
> + 	struct platform_device *pdev = pmu->plat_device;
>  -	int *irqs = kcalloc(pdev->num_resources, sizeof(*irqs), GFP_KERNEL);
>  +	int *irqs;
>   
>  +	/* Don't bother with PPIs; they're already affine */
>  +	irq = platform_get_irq(pdev, 0);
>  +	if (irq >= 0 && irq_is_percpu(irq))
>  +		return 0;
>  +
>  +	irqs = kcalloc(pdev->num_resources, sizeof(*irqs), GFP_KERNEL);
>   	if (!irqs)
>   		return -ENOMEM;
>   



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

end of thread, other threads:[~2015-05-29 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-29  1:14 linux-next: manual merge of the arm-perf tree with Linus' and teh arm-current trees Stephen Rothwell
2015-05-29 10:21 ` Will Deacon

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).