ARM: 8401/1: perf: Set affinity for PPI based PMUs
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 7 Jul 2015 17:16:15 +0000 (18:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 10 Jul 2015 10:08:42 +0000 (11:08 +0100)
commit8ded1e1a92daa96307e4b84b707fee5993bc6047
tree02f0b3d1dfa39879d299250e266e3e5d5e9f13de
parenteeedcea69e927857d32aaf089725eddd2c79dd0a
ARM: 8401/1: perf: Set affinity for PPI based PMUs

For PPI based PMUs, we bail out early in of_pmu_irq_cfg() without
setting the PMU's supported_cpus bitmap. This causes the
smp_call_function_any() in armv7_probe_num_events() to fail. Set
the bitmap to be all CPUs so that we properly probe PMUs that use
PPIs.

Fixes: cc88116da0d1 ("arm: perf: treat PMUs as CPU affine")
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event.c