diff options
Diffstat (limited to 'include/linux/hypervisor.h')
| -rw-r--r-- | include/linux/hypervisor.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/hypervisor.h b/include/linux/hypervisor.h index b4054fd5b6f6..b19563f9a8eb 100644 --- a/include/linux/hypervisor.h +++ b/include/linux/hypervisor.h | |||
| @@ -7,8 +7,12 @@ | |||
| 7 | * Juergen Gross <jgross@suse.com> | 7 | * Juergen Gross <jgross@suse.com> |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #ifdef CONFIG_HYPERVISOR_GUEST | 10 | #ifdef CONFIG_X86 |
| 11 | #include <asm/hypervisor.h> | 11 | #include <asm/x86_init.h> |
| 12 | static inline void hypervisor_pin_vcpu(int cpu) | ||
| 13 | { | ||
| 14 | x86_platform.hyper.pin_vcpu(cpu); | ||
| 15 | } | ||
| 12 | #else | 16 | #else |
| 13 | static inline void hypervisor_pin_vcpu(int cpu) | 17 | static inline void hypervisor_pin_vcpu(int cpu) |
| 14 | { | 18 | { |
