diff options
author | Mark Rutland <[email protected]> | 2011-06-22 15:32:48 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2011-06-29 10:27:08 +0100 |
commit | ae0c3751ab08d3fe039d48935e9ad2c46711b23b (patch) | |
tree | 7159b91bd55eb6e64032c84644a932a5cf35d9e8 /net/lapb/lapb_timer.c | |
parent | f12482c9393da2c1f5cb3217f29aa79c653dd980 (diff) |
ARM: 6975/1: pmu: reject duplicate PMU registrations
Currently, the PMU reservation framework allows for multiple PMUs of
the same type to register themselves. This can lead to a bug with the
sequence:
register_pmu(pmu1);
reserve_pmu(pmu_type);
register_pmu(pmu2);
release_pmu(pmu1);
Here, pmu1 cannot be released, and pmu2 cannot be reserved.
This patch modifies register_pmu to reject registrations where a PMU is
already present, preventing this problem. PMUs which can have multiple
instances should not use the PMU reservation framework.
Signed-off-by: Mark Rutland <[email protected]>
Acked-by: Jamie Iles <[email protected]>
Acked-by: Will Deacon <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions