aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/kernel/time.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2011-11-17 15:05:14 +0000
committerWill Deacon <will.deacon@arm.com>2011-11-17 15:20:03 +0000
commitbce34d14428d35d9a06ddc10cd46ecef311764c9 (patch)
tree231aafe3e3b35f7b00da16240fa5a6b8ecdf2870 /arch/arm/kernel/time.c
parent14e25c5eeb90d4f61cc94933307d04a19738ad2f (diff)
ARM: perf: initialise used_mask for fake PMU during validation
When validating an event group, we call pmu->get_event_idx for each group member in order to check that the group can be scheduled as a unit on an empty PMU. As a result of 3fc2c830 ("ARM: perf: remove event limit from pmu_hw_events"), the used_mask member of struct cpu_hw_events must be setup explicitly, something which we don't do for the fake cpu_hw_events used for validation. This patch sets up an empty used_mask for the fake validation cpu_hw_events, preventing NULL deferences when trying to get the event index. Reported-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/time.c')
0 files changed, 0 insertions, 0 deletions