]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drivers/perf: arm_pmu_platform: do not warn about affinity on uniprocessor
authorAlexander Monakov <amonakov@ispras.ru>
Thu, 1 Mar 2018 20:25:36 +0000 (23:25 +0300)
committerWill Deacon <will.deacon@arm.com>
Tue, 27 Mar 2018 12:13:27 +0000 (13:13 +0100)
If there is exactly one CPU present, there is no ambiguity: do not warn
that PMU setup would need to guess IRQ affinity.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Alexander Monakov <amonakov@ispras.ru>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu_platform.c

index 7729eda5909df180ae686ee8206e35a75b9ca476..971ff336494a4ac6c4b0d533440d6fab076ebd9f 100644 (file)
@@ -122,7 +122,7 @@ static int pmu_parse_irqs(struct arm_pmu *pmu)
                        return pmu_parse_percpu_irq(pmu, irq);
        }
 
-       if (!pmu_has_irq_affinity(pdev->dev.of_node)) {
+       if (nr_cpu_ids != 1 && !pmu_has_irq_affinity(pdev->dev.of_node)) {
                pr_warn("no interrupt-affinity property for %pOF, guessing.\n",
                        pdev->dev.of_node);
        }