• M
    arm: perf: treat PMUs as CPU affine · cc88116d
    Mark Rutland 提交于
    In multi-cluster systems, the PMUs can be different across clusters, and
    so our logical PMU may not be able to schedule events on all CPUs.
    
    This patch adds a cpumask to encode which CPUs a PMU driver supports
    controlling events for, and limits the driver to scheduling events on
    those CPUs, and enabling and disabling the physical PMUs on those CPUs.
    The cpumask is built based on the interrupt-affinity property, and in
    the absence of such a property a homogenous system is assumed.
    Acked-by: NWill Deacon <will.deacon@arm.com>
    Signed-off-by: NMark Rutland <mark.rutland@arm.com>
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    cc88116d
perf_event.c 14.1 KB