summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorK. Y. Srinivasan <kys@microsoft.com>2017-01-18 18:45:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-19 05:42:07 -0500
commit8730046c1498e8fb8c9a124789893944e8ce8220 (patch)
tree0028573415d5e137e05a461338891eb6b21a4945 /arch/x86/kernel
parent352c9624242d5836ad8a960826183011367871a4 (diff)
Drivers: hv vmbus: Move Hypercall page setup out of common code
As part of the effort to separate out architecture specific code, move the hypercall page setup to an architecture specific file. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/cpu/mshyperv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
index 65e20c97e04b..c5a1e9ba9ae0 100644
--- a/arch/x86/kernel/cpu/mshyperv.c
+++ b/arch/x86/kernel/cpu/mshyperv.c
@@ -227,6 +227,13 @@ static void __init ms_hyperv_init_platform(void)
227 */ 227 */
228 if (efi_enabled(EFI_BOOT)) 228 if (efi_enabled(EFI_BOOT))
229 x86_platform.get_nmi_reason = hv_get_nmi_reason; 229 x86_platform.get_nmi_reason = hv_get_nmi_reason;
230
231#if IS_ENABLED(CONFIG_HYPERV)
232 /*
233 * Setup the hook to get control post apic initialization.
234 */
235 x86_platform.apic_post_init = hyperv_init;
236#endif
230} 237}
231 238
232const __refconst struct hypervisor_x86 x86_hyper_ms_hyperv = { 239const __refconst struct hypervisor_x86 x86_hyper_ms_hyperv = {