aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/x86_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/x86_init.c')
-rw-r--r--arch/x86/kernel/x86_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
index a088b2c47f73..5b2d10c1973a 100644
--- a/arch/x86/kernel/x86_init.c
+++ b/arch/x86/kernel/x86_init.c
@@ -28,6 +28,8 @@ void x86_init_noop(void) { }
28void __init x86_init_uint_noop(unsigned int unused) { } 28void __init x86_init_uint_noop(unsigned int unused) { }
29int __init iommu_init_noop(void) { return 0; } 29int __init iommu_init_noop(void) { return 0; }
30void iommu_shutdown_noop(void) { } 30void iommu_shutdown_noop(void) { }
31bool __init bool_x86_init_noop(void) { return false; }
32void x86_op_int_noop(int cpu) { }
31 33
32/* 34/*
33 * The platform setup functions are preset with the default functions 35 * The platform setup functions are preset with the default functions
@@ -81,6 +83,12 @@ struct x86_init_ops x86_init __initdata = {
81 .init_irq = x86_default_pci_init_irq, 83 .init_irq = x86_default_pci_init_irq,
82 .fixup_irqs = x86_default_pci_fixup_irqs, 84 .fixup_irqs = x86_default_pci_fixup_irqs,
83 }, 85 },
86
87 .hyper = {
88 .init_platform = x86_init_noop,
89 .x2apic_available = bool_x86_init_noop,
90 .init_mem_mapping = x86_init_noop,
91 },
84}; 92};
85 93
86struct x86_cpuinit_ops x86_cpuinit = { 94struct x86_cpuinit_ops x86_cpuinit = {
@@ -101,6 +109,7 @@ struct x86_platform_ops x86_platform __ro_after_init = {
101 .get_nmi_reason = default_get_nmi_reason, 109 .get_nmi_reason = default_get_nmi_reason,
102 .save_sched_clock_state = tsc_save_sched_clock_state, 110 .save_sched_clock_state = tsc_save_sched_clock_state,
103 .restore_sched_clock_state = tsc_restore_sched_clock_state, 111 .restore_sched_clock_state = tsc_restore_sched_clock_state,
112 .hyper.pin_vcpu = x86_op_int_noop,
104}; 113};
105 114
106EXPORT_SYMBOL_GPL(x86_platform); 115EXPORT_SYMBOL_GPL(x86_platform);