perf: pmuv3: Move inclusion of kvm_host.h to the arch-specific helper
authorZaid Al-Bassam <zalbassam@google.com>
Fri, 17 Mar 2023 19:50:23 +0000 (15:50 -0400)
committerWill Deacon <will@kernel.org>
Mon, 27 Mar 2023 13:01:18 +0000 (14:01 +0100)
KVM host support is available only on arm64.

By moving the inclusion of kvm_host.h to an arm64-specific file,
the 32bit architecture will be able to implement dummy helpers.

Signed-off-by: Zaid Al-Bassam <zalbassam@google.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230317195027.3746949-5-zalbassam@google.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/arm_pmuv3.h
drivers/perf/arm_pmuv3.c

index 80cdfa4..d6b51de 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef __ASM_PMUV3_H
 #define __ASM_PMUV3_H
 
+#include <linux/kvm_host.h>
+
 #include <asm/cpufeature.h>
 #include <asm/sysreg.h>
 
index f7d890a..2cab600 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <linux/acpi.h>
 #include <linux/clocksource.h>
-#include <linux/kvm_host.h>
 #include <linux/of.h>
 #include <linux/perf/arm_pmu.h>
 #include <linux/perf/arm_pmuv3.h>