aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPunit Agrawal <punit.agrawal@arm.com>2013-10-08 12:20:13 +0100
committerAlex Shi <alex.shi@linaro.org>2014-07-16 11:59:41 +0800
commit1aec809cd0847a70699ec0db7f48f7bbdfe4a50c (patch)
tree3a9a93c56d60bfc7ce69213337df5500d9f31127 /drivers
parentbeff9090fd66952cbf30337d8813f3e552749d5d (diff)
arm: cci: Make the PMU valid across all CPUs
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> Signed-off-by: Jon Medhurst <tixy@linaro.org> (cherry picked from commit 9f496a8ab96ac3c94e1bd283e1816ae901355979) Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/bus/arm-cci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c
index 8965fb59bb34..bc8e1af279c0 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);
}