Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249949
b: refs/heads/master
c: 57ce9bb
h: refs/heads/master
i:
  249947: 4e01583
v: v3
  • Loading branch information
Mark Rutland authored and Russell King committed May 20, 2011
1 parent 10dd1d4 commit 22b1d43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31bee4cf0e74e9c962d481a68452debaf45ed4ac
refs/heads/master: 57ce9bb39b476accf8fba6e16aea67ed76ea523d
5 changes: 0 additions & 5 deletions trunk/arch/arm/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,6 @@ static int armpmu_event_init(struct perf_event *event)
event->destroy = hw_perf_event_destroy;

if (!atomic_inc_not_zero(&active_events)) {
if (atomic_read(&active_events) > armpmu->num_events) {
atomic_dec(&active_events);
return -ENOSPC;
}

mutex_lock(&pmu_reserve_mutex);
if (atomic_read(&active_events) == 0) {
err = armpmu_reserve_hardware();
Expand Down

0 comments on commit 22b1d43

Please sign in to comment.