arm: perf: Set affinity for PPI based PMUs
[sfrench/cifs-2.6.git] / arch / arm / kernel / perf_event.c
index 54272e0be7137c853f2d684d236449157ef55193..7d5379c1c443b942fe0e711ddce4d0977b9eb91c 100644 (file)
@@ -795,8 +795,10 @@ static int of_pmu_irq_cfg(struct arm_pmu *pmu)
 
        /* Don't bother with PPIs; they're already affine */
        irq = platform_get_irq(pdev, 0);
-       if (irq >= 0 && irq_is_percpu(irq))
+       if (irq >= 0 && irq_is_percpu(irq)) {
+               cpumask_setall(&pmu->supported_cpus);
                return 0;
+       }
 
        irqs = kcalloc(pdev->num_resources, sizeof(*irqs), GFP_KERNEL);
        if (!irqs)