Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270133
b: refs/heads/master
c: 7ae18a5
h: refs/heads/master
i:
  270131: d7096cd
v: v3
  • Loading branch information
Mark Rutland authored and Will Deacon committed Aug 31, 2011
1 parent 556c111 commit 4c06127
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: 0f78d2d5ccf72ec834da6901886a40fd8e3b7615
refs/heads/master: 7ae18a5717cbbf1879bdd5b66d7009a9958e5aef
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 @@ -60,6 +60,7 @@ static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events);

struct arm_pmu {
enum arm_perf_pmu_ids id;
enum arm_pmu_type type;
cpumask_t active_irqs;
const char *name;
irqreturn_t (*handle_irq)(int irq_num, void *dev);
Expand Down Expand Up @@ -396,7 +397,7 @@ armpmu_release_hardware(void)
free_irq(irq, NULL);
}

release_pmu(ARM_PMU_DEVICE_CPU);
release_pmu(armpmu->type);
}

static int
Expand All @@ -407,7 +408,7 @@ armpmu_reserve_hardware(void)
int i, err, irq, irqs;
struct platform_device *pmu_device = armpmu->plat_device;

err = reserve_pmu(ARM_PMU_DEVICE_CPU);
err = reserve_pmu(armpmu->type);
if (err) {
pr_warning("unable to reserve pmu\n");
return err;
Expand Down Expand Up @@ -691,6 +692,7 @@ static void __init cpu_pmu_init(struct arm_pmu *armpmu)
raw_spin_lock_init(&events->pmu_lock);
}
armpmu->get_hw_events = armpmu_get_cpu_events;
armpmu->type = ARM_PMU_DEVICE_CPU;
}

/*
Expand Down

0 comments on commit 4c06127

Please sign in to comment.