Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/perf: arm_pmu_platform: do not warn about affinity on uniprocessor

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>

authored by

Alexander Monakov and committed by
Will Deacon
65bd053f fcd9f831

+1 -1
+1 -1
drivers/perf/arm_pmu_platform.c
··· 122 122 return pmu_parse_percpu_irq(pmu, irq); 123 123 } 124 124 125 - if (!pmu_has_irq_affinity(pdev->dev.of_node)) { 125 + if (nr_cpu_ids != 1 && !pmu_has_irq_affinity(pdev->dev.of_node)) { 126 126 pr_warn("no interrupt-affinity property for %pOF, guessing.\n", 127 127 pdev->dev.of_node); 128 128 }