[PATCH 6/8] arm: perf: fold percpu_pmu into pmu_hw_events

Stephen Boyd sboyd at codeaurora.org
Tue Oct 21 15:05:07 PDT 2014


On 10/21/2014 06:11 AM, Mark Rutland wrote:
> Currently the percpu_pmu pointers used as percpu_irq dev_id values are
> defined separately from the other per-cpu accounting data, which make
> dynamically allocating the data (as will be required for systems with
> heterogeneous CPUs) difficult.
>
> This patch moves the percpu_pmu pointers into pmu_hw_events (which is
> itself allocated per cpu), which will allow for easier dynamic
> allocation. Both percpu and regular irqs are requested using percpu_pmu
> pointers as tokens, freeing us from having to know whether an irq is
> percpu within the handler, and thus avoiding a radix tree lookup on the
> handler path.
>
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>
> Reviewed-by: Will Deacon <will.deacon at arm.com>
> Cc: Stephen Boyd <sboyd at codeaurora.org>

Reviewed-by: Stephen Boyd <sboyd at codeaurora.org>
Tested-by: Stephen Boyd <sboyd at codeaurora.org>

Works on Krait with percpu interrupts.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project




More information about the linux-arm-kernel mailing list