Skip to content

Commit

Permalink
[PATCH] lockdep: console_init after local_irq_enable()
Browse files Browse the repository at this point in the history
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: Heiko Carstens <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
heicarst authored and Linus Torvalds committed Jul 3, 2006
1 parent 3e541a4 commit 93e0281
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,10 @@ asmlinkage void __init start_kernel(void)
softirq_init();
timekeeping_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
Expand All @@ -507,10 +511,6 @@ asmlinkage void __init start_kernel(void)
console_init();
if (panic_later)
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
if (initrd_start && !initrd_below_start_ok &&
initrd_start < min_low_pfn << PAGE_SHIFT) {
Expand Down

0 comments on commit 93e0281

Please sign in to comment.