diff options
| -rw-r--r-- | arch/x86/hyperv/Makefile | 3 | ||||
| -rw-r--r-- | arch/x86/hyperv/hv_apic.c | 6 | ||||
| -rw-r--r-- | arch/x86/include/asm/mshyperv.h | 7 |
3 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/hyperv/Makefile b/arch/x86/hyperv/Makefile index 00ce4df01a09..b173d404e3df 100644 --- a/arch/x86/hyperv/Makefile +++ b/arch/x86/hyperv/Makefile | |||
| @@ -1 +1,2 @@ | |||
| 1 | obj-y := hv_init.o mmu.o hv_apic.o | 1 | obj-y := hv_init.o mmu.o |
| 2 | obj-$(CONFIG_X86_64) += hv_apic.o | ||
diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c index d3ff6e255924..f68855499391 100644 --- a/arch/x86/hyperv/hv_apic.c +++ b/arch/x86/hyperv/hv_apic.c | |||
| @@ -31,9 +31,6 @@ | |||
| 31 | #include <asm/mshyperv.h> | 31 | #include <asm/mshyperv.h> |
| 32 | #include <asm/apic.h> | 32 | #include <asm/apic.h> |
| 33 | 33 | ||
| 34 | #ifdef CONFIG_X86_64 | ||
| 35 | #if IS_ENABLED(CONFIG_HYPERV) | ||
| 36 | |||
| 37 | static struct apic orig_apic; | 34 | static struct apic orig_apic; |
| 38 | 35 | ||
| 39 | static u64 hv_apic_icr_read(void) | 36 | static u64 hv_apic_icr_read(void) |
| @@ -257,6 +254,3 @@ void __init hv_apic_init(void) | |||
| 257 | apic->icr_read = hv_apic_icr_read; | 254 | apic->icr_read = hv_apic_icr_read; |
| 258 | } | 255 | } |
| 259 | } | 256 | } |
| 260 | |||
| 261 | #endif /* CONFIG_HYPERV */ | ||
| 262 | #endif /* CONFIG_X86_64 */ | ||
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 9aaa493f5756..997192131b7b 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h | |||
| @@ -302,7 +302,13 @@ void hyperv_reenlightenment_intr(struct pt_regs *regs); | |||
| 302 | void set_hv_tscchange_cb(void (*cb)(void)); | 302 | void set_hv_tscchange_cb(void (*cb)(void)); |
| 303 | void clear_hv_tscchange_cb(void); | 303 | void clear_hv_tscchange_cb(void); |
| 304 | void hyperv_stop_tsc_emulation(void); | 304 | void hyperv_stop_tsc_emulation(void); |
| 305 | |||
| 306 | #ifdef CONFIG_X86_64 | ||
| 305 | void hv_apic_init(void); | 307 | void hv_apic_init(void); |
| 308 | #else | ||
| 309 | static inline void hv_apic_init(void) {} | ||
| 310 | #endif | ||
| 311 | |||
| 306 | #else /* CONFIG_HYPERV */ | 312 | #else /* CONFIG_HYPERV */ |
| 307 | static inline void hyperv_init(void) {} | 313 | static inline void hyperv_init(void) {} |
| 308 | static inline bool hv_is_hyperv_initialized(void) { return false; } | 314 | static inline bool hv_is_hyperv_initialized(void) { return false; } |
| @@ -311,7 +317,6 @@ static inline void hyperv_setup_mmu_ops(void) {} | |||
| 311 | static inline void set_hv_tscchange_cb(void (*cb)(void)) {} | 317 | static inline void set_hv_tscchange_cb(void (*cb)(void)) {} |
| 312 | static inline void clear_hv_tscchange_cb(void) {} | 318 | static inline void clear_hv_tscchange_cb(void) {} |
| 313 | static inline void hyperv_stop_tsc_emulation(void) {}; | 319 | static inline void hyperv_stop_tsc_emulation(void) {}; |
| 314 | static inline void hv_apic_init(void) {} | ||
| 315 | static inline struct hv_vp_assist_page *hv_get_vp_assist_page(unsigned int cpu) | 320 | static inline struct hv_vp_assist_page *hv_get_vp_assist_page(unsigned int cpu) |
| 316 | { | 321 | { |
| 317 | return NULL; | 322 | return NULL; |
