Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351165
b: refs/heads/master
c: 8f3b90b
h: refs/heads/master
i:
  351163: 914497a
v: v3
  • Loading branch information
Mark Rutland authored and Will Deacon committed Jan 18, 2013
1 parent d4e8a34 commit 8afda14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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: 76b8a0e4c8bda5f03574b8a904331266d162c796
refs/heads/master: 8f3b90b585d3e879b03ce2a202da04d59dd5b699
8 changes: 0 additions & 8 deletions trunk/arch/arm/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,6 @@ u64 armpmu_event_update(struct perf_event *event)
static void
armpmu_read(struct perf_event *event)
{
struct hw_perf_event *hwc = &event->hw;

/* Don't read disabled counters! */
if (hwc->idx < 0)
return;

armpmu_event_update(event);
}

Expand Down Expand Up @@ -207,8 +201,6 @@ armpmu_del(struct perf_event *event, int flags)
struct hw_perf_event *hwc = &event->hw;
int idx = hwc->idx;

WARN_ON(idx < 0);

armpmu_stop(event, PERF_EF_UPDATE);
hw_events->events[idx] = NULL;
clear_bit(idx, hw_events->used_mask);
Expand Down

0 comments on commit 8afda14

Please sign in to comment.