• Mark Rutland's avatar
    arm: perf: treat PMUs as CPU affine · cc88116d
    Mark Rutland authored
    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: default avatarWill Deacon <will.deacon@arm.com>
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    cc88116d
perf_event.c 14.1 KB