diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2018-03-01 15:25:36 -0500 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-03-27 08:13:27 -0400 |
commit | 65bd053fbf46c44b9862cb1e7d76ee84f90e386e (patch) | |
tree | e75333ff46e24e240f7c050750d9abd6b1991853 /drivers/perf | |
parent | fcd9f8315e6af1bbe6878c1084b142211f3d7e1f (diff) |
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>
Diffstat (limited to 'drivers/perf')
-rw-r--r-- | drivers/perf/arm_pmu_platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c index 7729eda5909d..971ff336494a 100644 --- a/drivers/perf/arm_pmu_platform.c +++ b/drivers/perf/arm_pmu_platform.c | |||
@@ -122,7 +122,7 @@ static int pmu_parse_irqs(struct arm_pmu *pmu) | |||
122 | return pmu_parse_percpu_irq(pmu, irq); | 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 | pr_warn("no interrupt-affinity property for %pOF, guessing.\n", | 126 | pr_warn("no interrupt-affinity property for %pOF, guessing.\n", |
127 | pdev->dev.of_node); | 127 | pdev->dev.of_node); |
128 | } | 128 | } |