diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-07-03 09:24:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-04 00:27:04 +0200 |
commit | 2148270cd2ebe0d05e4289b7c77b1435c45481bf (patch) | |
tree | d2ad8c7579f9aecfc57dbf2cdc523e0bcaf042b1 /arch/x86_64 | |
parent | [PATCH] lockdep: print all lock classes on SysRQ-D (diff) | |
download | linux-2148270cd2ebe0d05e4289b7c77b1435c45481bf.tar.xz linux-2148270cd2ebe0d05e4289b7c77b1435c45481bf.zip |
[PATCH] lockdep: x86_64 early init
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>
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/head64.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/head64.c b/arch/x86_64/kernel/head64.c index e6a71c9556d9..36647ce6aecb 100644 --- a/arch/x86_64/kernel/head64.c +++ b/arch/x86_64/kernel/head64.c @@ -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)); |