]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/x86/kernel/cpu/mshyperv.c
Drivers: hv vmbus: Move Hypercall page setup out of common code
[mirror_ubuntu-zesty-kernel.git] / arch / x86 / kernel / cpu / mshyperv.c
index 65e20c97e04b1e2591a356eda4e922ed92ec0310..c5a1e9ba9ae07b34830906d62b938ee3a69d1ed6 100644 (file)
@@ -227,6 +227,13 @@ static void __init ms_hyperv_init_platform(void)
         */
        if (efi_enabled(EFI_BOOT))
                x86_platform.get_nmi_reason = hv_get_nmi_reason;
+
+#if IS_ENABLED(CONFIG_HYPERV)
+       /*
+        * Setup the hook to get control post apic initialization.
+        */
+       x86_platform.apic_post_init = hyperv_init;
+#endif
 }
 
 const __refconst struct hypervisor_x86 x86_hyper_ms_hyperv = {