Commit 93e02814 authored by Heiko Carstens's avatar Heiko Carstens Committed by Linus Torvalds

[PATCH] lockdep: console_init after local_irq_enable()

s390's console_init must enable interrupts, but early_boot_irqs_on() gets
called later.  To avoid problems move console_init() after local_irq_enable().
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3e541a4a
...@@ -498,6 +498,10 @@ asmlinkage void __init start_kernel(void) ...@@ -498,6 +498,10 @@ asmlinkage void __init start_kernel(void)
softirq_init(); softirq_init();
timekeeping_init(); timekeeping_init();
time_init(); time_init();
profile_init();
if (!irqs_disabled())
printk("start_kernel(): bug: interrupts were enabled early\n");
local_irq_enable();
/* /*
* HACK ALERT! This is early. We're enabling the console before * HACK ALERT! This is early. We're enabling the console before
...@@ -507,10 +511,6 @@ asmlinkage void __init start_kernel(void) ...@@ -507,10 +511,6 @@ asmlinkage void __init start_kernel(void)
console_init(); console_init();
if (panic_later) if (panic_later)
panic(panic_later, panic_param); panic(panic_later, panic_param);
profile_init();
if (!irqs_disabled())
printk("start_kernel(): bug: interrupts were enabled early\n");
local_irq_enable();
#ifdef CONFIG_BLK_DEV_INITRD #ifdef CONFIG_BLK_DEV_INITRD
if (initrd_start && !initrd_below_start_ok && if (initrd_start && !initrd_below_start_ok &&
initrd_start < min_low_pfn << PAGE_SHIFT) { initrd_start < min_low_pfn << PAGE_SHIFT) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment