Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191837
b: refs/heads/master
c: 929f519
h: refs/heads/master
i:
  191835: bd277e3
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed May 17, 2010
1 parent 54eb95d commit 0cb6dfd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49e6a32f2f0876b6267584d9c7e0e213bca6e2b8
refs/heads/master: 929f5199448a67d41bb249d58815ef77bcd53622
3 changes: 3 additions & 0 deletions trunk/arch/arm/include/asm/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@ enum arm_perf_pmu_ids {
extern enum arm_perf_pmu_ids
armpmu_get_pmu_id(void);

extern int
armpmu_get_max_events(void);

#endif /* __ARM_PERF_EVENT_H__ */
12 changes: 12 additions & 0 deletions trunk/arch/arm/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ armpmu_get_pmu_id(void)
}
EXPORT_SYMBOL_GPL(armpmu_get_pmu_id);

int
armpmu_get_max_events(void)
{
int max_events = 0;

if (armpmu != NULL)
max_events = armpmu->num_events;

return max_events;
}
EXPORT_SYMBOL_GPL(armpmu_get_max_events);

#define HW_OP_UNSUPPORTED 0xFFFF

#define C(_x) \
Expand Down

0 comments on commit 0cb6dfd

Please sign in to comment.