x86: Move paravirt pagetable_setup to x86_init_ops
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kernel / x86_init.c
1 /*
2  * Copyright (C) 2009 Thomas Gleixner <tglx@linutronix.de>
3  *
4  *  For licencing details see kernel-base/COPYING
5  */
6 #include <linux/init.h>
7
8 #include <asm/bios_ebda.h>
9 #include <asm/paravirt.h>
10 #include <asm/mpspec.h>
11 #include <asm/setup.h>
12 #include <asm/e820.h>
13 #include <asm/irq.h>
14
15 void __cpuinit x86_init_noop(void) { }
16 void __init x86_init_uint_noop(unsigned int unused) { }
17 void __init x86_init_pgd_noop(pgd_t *unused) { }
18
19 /*
20  * The platform setup functions are preset with the default functions
21  * for standard PC hardware.
22  */
23 struct __initdata x86_init_ops x86_init = {
24
25         .resources = {
26                 .probe_roms             = x86_init_noop,
27                 .reserve_resources      = reserve_standard_io_resources,
28                 .reserve_ebda_region    = reserve_ebda_region,
29                 .memory_setup           = default_machine_specific_memory_setup,
30         },
31
32         .mpparse = {
33                 .mpc_record             = x86_init_uint_noop,
34                 .setup_ioapic_ids       = x86_init_noop,
35                 .mpc_apic_id            = default_mpc_apic_id,
36                 .smp_read_mpc_oem       = default_smp_read_mpc_oem,
37                 .mpc_oem_bus_info       = default_mpc_oem_bus_info,
38                 .find_smp_config        = default_find_smp_config,
39                 .get_smp_config         = default_get_smp_config,
40         },
41
42         .irqs = {
43                 .pre_vector_init        = init_ISA_irqs,
44                 .intr_init              = native_init_IRQ,
45                 .trap_init              = x86_init_noop,
46         },
47
48         .oem = {
49                 .arch_setup             = x86_init_noop,
50                 .banner                 = default_banner,
51         },
52
53         .paging = {
54                 .pagetable_setup_start  = native_pagetable_setup_start,
55                 .pagetable_setup_done   = native_pagetable_setup_done,
56         },
57 };