[PATCH] lockdep: x86_64 early init
authorIngo Molnar <mingo@elte.hu>
Mon, 3 Jul 2006 07:24:57 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 3 Jul 2006 22:27:04 +0000 (15:27 -0700)
x86_64 uses spinlocks very early - earlier than start_kernel().  So call
lockdep_init() from the arch setup code.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/head64.c

index e6a71c9..36647ce 100644 (file)
@@ -85,6 +85,11 @@ void __init x86_64_start_kernel(char * real_mode_data)
        clear_bss();
 
        /*
+        * This must be called really, really early:
+        */
+       lockdep_init();
+
+       /*
         * switch to init_level4_pgt from boot_level4_pgt
         */
        memcpy(init_level4_pgt, boot_level4_pgt, PTRS_PER_PGD*sizeof(pgd_t));