The CCI PMU is not a CPU PMU. As such the CCI PMU events can be initiate from any proocessor. Set the valid_cpus mask to indicate this.
Signed-off-by: Punit Agrawal punit.agrawal@arm.com --- (using the correct list-address. Please ignore the previous mail if you get a duplicate)
Hi Tixy,
Please pick this patch - it is required for the Linaro kernels to be able to use CCI PMU.
The patch is based on top of your integration-linux-vexpress branch.
Cheers, Punit
drivers/bus/arm-cci.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 57b0bc6..7363c7e 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -545,6 +545,7 @@ static int cci_pmu_init(struct arm_pmu *cci_pmu, struct platform_device *pdev)
cci_pmu->plat_device = pdev; cci_pmu->num_events = pmu_get_max_counters(); + cpumask_setall(&cci_pmu->valid_cpus);
return armpmu_register(cci_pmu, -1); }