Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254777
b: refs/heads/master
c: f4f3843
h: refs/heads/master
i:
  254775: 3b9db5a
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Jul 5, 2011
1 parent a6605fa commit febc553
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 178783622ce0fd629fad21b33b8f8f56b64c5e45
refs/heads/master: f4f38430c94c38187db73a2cf3892cc8b12a2713
6 changes: 4 additions & 2 deletions trunk/arch/arm/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ static int armpmu_event_init(struct perf_event *event)
static void armpmu_enable(struct pmu *pmu)
{
/* Enable all of the perf events on hardware. */
int idx;
int idx, enabled = 0;
struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);

if (!armpmu)
Expand All @@ -596,9 +596,11 @@ static void armpmu_enable(struct pmu *pmu)
continue;

armpmu->enable(&event->hw, idx);
enabled = 1;
}

armpmu->start();
if (enabled)
armpmu->start();
}

static void armpmu_disable(struct pmu *pmu)
Expand Down

0 comments on commit febc553

Please sign in to comment.