git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KVM: arm64: pmu: Guard PMU emulation definitions with CONFIG_KVM
[sfrench/cifs-2.6.git]
/
include
/
kvm
/
arm_pmu.h
diff --git
a/include/kvm/arm_pmu.h
b/include/kvm/arm_pmu.h
index 3a8a70a607942cf9eab0ff0811a611d132ee3f5c..31029f4f7be851d684c9500c243b59e979e6df67 100644
(file)
--- a/
include/kvm/arm_pmu.h
+++ b/
include/kvm/arm_pmu.h
@@
-12,7
+12,7
@@
#define ARMV8_PMU_CYCLE_IDX (ARMV8_PMU_MAX_COUNTERS - 1)
-#if
def CONFIG_HW_PERF_EVENTS
+#if
IS_ENABLED(CONFIG_HW_PERF_EVENTS) && IS_ENABLED(CONFIG_KVM)
struct kvm_pmc {
u8 idx; /* index into the pmu->pmc array */