x86: Move xen_post_allocator_init into xen_pagetable_setup_done
authorThomas Gleixner <tglx@linutronix.de>
Thu, 20 Aug 2009 11:13:52 +0000 (13:13 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 31 Aug 2009 07:35:45 +0000 (09:35 +0200)
We really do not need two paravirt/x86_init_ops functions which are
called in two consecutive source lines. Move the only user of
post_allocator_init into the already existing pagetable_setup_done
function.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt_types.h
arch/x86/include/asm/setup.h
arch/x86/kernel/setup.c
arch/x86/xen/enlighten.c
arch/x86/xen/mmu.c
arch/x86/xen/xen-ops.h

index 1caf25b91e6b81f56a943dae7475f0b22ce2a76b..7ce415e844b6f0760065f7ff26189ef08428d091 100644 (file)
@@ -345,12 +345,6 @@ static inline void setup_secondary_clock(void)
 }
 #endif
 
-static inline void paravirt_post_allocator_init(void)
-{
-       if (pv_init_ops.post_allocator_init)
-               (*pv_init_ops.post_allocator_init)();
-}
-
 #ifdef CONFIG_SMP
 static inline void startup_ipi_hook(int phys_apicid, unsigned long start_eip,
                                    unsigned long start_esp)
index 4039eefd3ebc352a1920ce91e0c602e8f673833b..ecc74e5ad407d12711004679e7514a8580880c8c 100644 (file)
@@ -78,9 +78,6 @@ struct pv_init_ops {
         */
        unsigned (*patch)(u8 type, u16 clobber, void *insnbuf,
                          unsigned long addr, unsigned len);
-
-       /* Basic arch-specific setup */
-       void (*post_allocator_init)(void);
 };
 
 
index 7751d1f92bc93e7e812ed7aedcfe3532b60f8cee..58b58952b80dcaf0e1387cba3d98a4107c4fc8d9 100644 (file)
@@ -63,10 +63,6 @@ static inline int is_visws_box(void) { return 0; }
 extern struct x86_quirks *x86_quirks;
 extern unsigned long saved_video_mode;
 
-#ifndef CONFIG_PARAVIRT
-#define paravirt_post_allocator_init() do {} while (0)
-#endif
-
 extern void reserve_standard_io_resources(void);
 extern void i386_reserve_resources(void);
 
index 4952d63dd67a5a343fd4af91974ad2be2c712f8b..43ec6aa175bd931f00585d43811b77ddceef1c2f 100644 (file)
@@ -962,7 +962,6 @@ void __init setup_arch(char **cmdline_p)
        x86_init.paging.pagetable_setup_start(swapper_pg_dir);
        paging_init();
        x86_init.paging.pagetable_setup_done(swapper_pg_dir);
-       paravirt_post_allocator_init();
 
 #ifdef CONFIG_X86_64
        map_vsyscall();
index 12ea09ec39b561cca43dc730ede3cad02ec96d67..a924caa168ddeee1d1405b151da8fc10ff1e34c0 100644 (file)
@@ -839,8 +839,6 @@ static const struct pv_info xen_info __initdata = {
 
 static const struct pv_init_ops xen_init_ops __initdata = {
        .patch = xen_patch,
-
-       .post_allocator_init = xen_post_allocator_init,
 };
 
 static const struct pv_time_ops xen_time_ops __initdata = {
index dbec51da930e9ce507e8eef380997df6263523d8..093dd59b53856c8629cbd48ac7d9f031162d060e 100644 (file)
@@ -1229,9 +1229,12 @@ static __init void xen_pagetable_setup_start(pgd_t *base)
 {
 }
 
+static void xen_post_allocator_init(void);
+
 static __init void xen_pagetable_setup_done(pgd_t *base)
 {
        xen_setup_shared_info();
+       xen_post_allocator_init();
 }
 
 static void xen_write_cr2(unsigned long cr2)
@@ -1841,7 +1844,7 @@ static void xen_set_fixmap(unsigned idx, phys_addr_t phys, pgprot_t prot)
 #endif
 }
 
-__init void xen_post_allocator_init(void)
+static __init void xen_post_allocator_init(void)
 {
        pv_mmu_ops.set_pte = xen_set_pte;
        pv_mmu_ops.set_pmd = xen_set_pmd;
index 22494fd4c9b5cf49f8b3af7b2999626dc750b80c..355fa6b99c9c402e80d8443d2b94647436062c7a 100644 (file)
@@ -30,8 +30,6 @@ pgd_t *xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn);
 void xen_ident_map_ISA(void);
 void xen_reserve_top(void);
 
-void xen_post_allocator_init(void);
-
 char * __init xen_memory_setup(void);
 void __init xen_arch_setup(void);
 void __init xen_init_IRQ(void);
This page took 0.032449 seconds and 5 git commands to generate.