diff options
Diffstat (limited to 'arch/arm/kernel/perf_event_xscale.c')
| -rw-r--r-- | arch/arm/kernel/perf_event_xscale.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/kernel/perf_event_xscale.c b/arch/arm/kernel/perf_event_xscale.c index 39affbe4fdb..3c4397491d0 100644 --- a/arch/arm/kernel/perf_event_xscale.c +++ b/arch/arm/kernel/perf_event_xscale.c | |||
| @@ -144,6 +144,20 @@ static const unsigned xscale_perf_cache_map[PERF_COUNT_HW_CACHE_MAX] | |||
| 144 | [C(RESULT_MISS)] = CACHE_OP_UNSUPPORTED, | 144 | [C(RESULT_MISS)] = CACHE_OP_UNSUPPORTED, |
| 145 | }, | 145 | }, |
| 146 | }, | 146 | }, |
| 147 | [C(NODE)] = { | ||
| 148 | [C(OP_READ)] = { | ||
| 149 | [C(RESULT_ACCESS)] = CACHE_OP_UNSUPPORTED, | ||
| 150 | [C(RESULT_MISS)] = CACHE_OP_UNSUPPORTED, | ||
| 151 | }, | ||
| 152 | [C(OP_WRITE)] = { | ||
| 153 | [C(RESULT_ACCESS)] = CACHE_OP_UNSUPPORTED, | ||
| 154 | [C(RESULT_MISS)] = CACHE_OP_UNSUPPORTED, | ||
| 155 | }, | ||
| 156 | [C(OP_PREFETCH)] = { | ||
| 157 | [C(RESULT_ACCESS)] = CACHE_OP_UNSUPPORTED, | ||
| 158 | [C(RESULT_MISS)] = CACHE_OP_UNSUPPORTED, | ||
| 159 | }, | ||
| 160 | }, | ||
| 147 | }; | 161 | }; |
| 148 | 162 | ||
| 149 | #define XSCALE_PMU_ENABLE 0x001 | 163 | #define XSCALE_PMU_ENABLE 0x001 |
| @@ -251,7 +265,7 @@ xscale1pmu_handle_irq(int irq_num, void *dev) | |||
| 251 | if (!armpmu_event_set_period(event, hwc, idx)) | 265 | if (!armpmu_event_set_period(event, hwc, idx)) |
| 252 | continue; | 266 | continue; |
| 253 | 267 | ||
| 254 | if (perf_event_overflow(event, 0, &data, regs)) | 268 | if (perf_event_overflow(event, &data, regs)) |
| 255 | armpmu->disable(hwc, idx); | 269 | armpmu->disable(hwc, idx); |
| 256 | } | 270 | } |
| 257 | 271 | ||
| @@ -583,7 +597,7 @@ xscale2pmu_handle_irq(int irq_num, void *dev) | |||
| 583 | if (!armpmu_event_set_period(event, hwc, idx)) | 597 | if (!armpmu_event_set_period(event, hwc, idx)) |
| 584 | continue; | 598 | continue; |
| 585 | 599 | ||
| 586 | if (perf_event_overflow(event, 0, &data, regs)) | 600 | if (perf_event_overflow(event, &data, regs)) |
| 587 | armpmu->disable(hwc, idx); | 601 | armpmu->disable(hwc, idx); |
| 588 | } | 602 | } |
| 589 | 603 | ||
