diff options
-rw-r--r-- | arch/arm/include/asm/perf_event.h | 9 | ||||
-rw-r--r-- | arch/arm/include/asm/pmu.h | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/include/asm/perf_event.h b/arch/arm/include/asm/perf_event.h index 755877527cf9..c3a83691af8e 100644 --- a/arch/arm/include/asm/perf_event.h +++ b/arch/arm/include/asm/perf_event.h | |||
@@ -12,15 +12,6 @@ | |||
12 | #ifndef __ARM_PERF_EVENT_H__ | 12 | #ifndef __ARM_PERF_EVENT_H__ |
13 | #define __ARM_PERF_EVENT_H__ | 13 | #define __ARM_PERF_EVENT_H__ |
14 | 14 | ||
15 | /* | ||
16 | * The ARMv7 CPU PMU supports up to 32 event counters. | ||
17 | */ | ||
18 | #define ARMPMU_MAX_HWEVENTS 32 | ||
19 | |||
20 | #define HW_OP_UNSUPPORTED 0xFFFF | ||
21 | #define C(_x) PERF_COUNT_HW_CACHE_##_x | ||
22 | #define CACHE_OP_UNSUPPORTED 0xFFFF | ||
23 | |||
24 | #ifdef CONFIG_HW_PERF_EVENTS | 15 | #ifdef CONFIG_HW_PERF_EVENTS |
25 | struct pt_regs; | 16 | struct pt_regs; |
26 | extern unsigned long perf_instruction_pointer(struct pt_regs *regs); | 17 | extern unsigned long perf_instruction_pointer(struct pt_regs *regs); |
diff --git a/arch/arm/include/asm/pmu.h b/arch/arm/include/asm/pmu.h index ae1919be8f98..748d20d77fc5 100644 --- a/arch/arm/include/asm/pmu.h +++ b/arch/arm/include/asm/pmu.h | |||
@@ -42,6 +42,15 @@ struct arm_pmu_platdata { | |||
42 | 42 | ||
43 | #ifdef CONFIG_HW_PERF_EVENTS | 43 | #ifdef CONFIG_HW_PERF_EVENTS |
44 | 44 | ||
45 | /* | ||
46 | * The ARMv7 CPU PMU supports up to 32 event counters. | ||
47 | */ | ||
48 | #define ARMPMU_MAX_HWEVENTS 32 | ||
49 | |||
50 | #define HW_OP_UNSUPPORTED 0xFFFF | ||
51 | #define C(_x) PERF_COUNT_HW_CACHE_##_x | ||
52 | #define CACHE_OP_UNSUPPORTED 0xFFFF | ||
53 | |||
45 | /* The events for a given PMU register set. */ | 54 | /* The events for a given PMU register set. */ |
46 | struct pmu_hw_events { | 55 | struct pmu_hw_events { |
47 | /* | 56 | /* |