pvops-64: call paravirt_post_allocator_init() on setup_arch()
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 8 Jul 2008 22:06:24 +0000 (15:06 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 16 Jul 2008 08:53:57 +0000 (10:53 +0200)
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Stephen Tweedie <sct@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup.c
arch/x86/mm/init_32.c
arch/x86/xen/mmu.c

index 8ce6a91ce1084ef00e97fe3fd1c2a7ef178f9bbf..2ed504b97d47ddd45d065954c3258f913f435b5a 100644 (file)
@@ -822,6 +822,7 @@ void __init setup_arch(char **cmdline_p)
        paravirt_pagetable_setup_start(swapper_pg_dir);
        paging_init();
        paravirt_pagetable_setup_done(swapper_pg_dir);
+       paravirt_post_allocator_init();
 
 #ifdef CONFIG_X86_64
        map_vsyscall();
index 9689a5138e6472e33c6d0862b3ae56194ffcedb4..7113acd8ac45c4d9a4af70588c12c411e5be313d 100644 (file)
@@ -868,8 +868,6 @@ void __init paging_init(void)
         */
        sparse_init();
        zone_sizes_init();
-
-       paravirt_post_allocator_init();
 }
 
 /*
index ff0aa74afaa1ae01ce1a3bd45a907af1cd04e3ea..ebd6900e331c04d3c138b356a0cf17ffdf505735 100644 (file)
@@ -656,9 +656,11 @@ void xen_mm_pin_all(void)
        spin_unlock_irqrestore(&pgd_lock, flags);
 }
 
-/* The init_mm pagetable is really pinned as soon as its created, but
-   that's before we have page structures to store the bits.  So do all
-   the book-keeping now. */
+/*
+ * The init_mm pagetable is really pinned as soon as its created, but
+ * that's before we have page structures to store the bits.  So do all
+ * the book-keeping now.
+ */
 static __init int mark_pinned(struct page *page, enum pt_level level)
 {
        SetPagePinned(page);