mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-17 22:41:25 +00:00
[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>
This commit is contained in:
parent
8c64580d52
commit
2148270cd2
@ -84,6 +84,11 @@ void __init x86_64_start_kernel(char * real_mode_data)
|
|||||||
asm volatile("lidt %0" :: "m" (idt_descr));
|
asm volatile("lidt %0" :: "m" (idt_descr));
|
||||||
clear_bss();
|
clear_bss();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This must be called really, really early:
|
||||||
|
*/
|
||||||
|
lockdep_init();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* switch to init_level4_pgt from boot_level4_pgt
|
* switch to init_level4_pgt from boot_level4_pgt
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user