diff options
| -rw-r--r-- | include/kvm/arm_pmu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h index fe389ac31489..92e7e97ca8ff 100644 --- a/include/kvm/arm_pmu.h +++ b/include/kvm/arm_pmu.h | |||
| @@ -18,13 +18,13 @@ | |||
| 18 | #ifndef __ASM_ARM_KVM_PMU_H | 18 | #ifndef __ASM_ARM_KVM_PMU_H |
| 19 | #define __ASM_ARM_KVM_PMU_H | 19 | #define __ASM_ARM_KVM_PMU_H |
| 20 | 20 | ||
| 21 | #ifdef CONFIG_KVM_ARM_PMU | ||
| 22 | |||
| 23 | #include <linux/perf_event.h> | 21 | #include <linux/perf_event.h> |
| 24 | #include <asm/perf_event.h> | 22 | #include <asm/perf_event.h> |
| 25 | 23 | ||
| 26 | #define ARMV8_PMU_CYCLE_IDX (ARMV8_PMU_MAX_COUNTERS - 1) | 24 | #define ARMV8_PMU_CYCLE_IDX (ARMV8_PMU_MAX_COUNTERS - 1) |
| 27 | 25 | ||
| 26 | #ifdef CONFIG_KVM_ARM_PMU | ||
| 27 | |||
| 28 | struct kvm_pmc { | 28 | struct kvm_pmc { |
| 29 | u8 idx; /* index into the pmu->pmc array */ | 29 | u8 idx; /* index into the pmu->pmc array */ |
| 30 | struct perf_event *perf_event; | 30 | struct perf_event *perf_event; |
