diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/init/main.c b/init/main.c index c8960b9df623..d604dfef82b8 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -498,6 +498,10 @@ asmlinkage void __init start_kernel(void) | |||
498 | softirq_init(); | 498 | softirq_init(); |
499 | timekeeping_init(); | 499 | timekeeping_init(); |
500 | time_init(); | 500 | time_init(); |
501 | profile_init(); | ||
502 | if (!irqs_disabled()) | ||
503 | printk("start_kernel(): bug: interrupts were enabled early\n"); | ||
504 | local_irq_enable(); | ||
501 | 505 | ||
502 | /* | 506 | /* |
503 | * HACK ALERT! This is early. We're enabling the console before | 507 | * HACK ALERT! This is early. We're enabling the console before |
@@ -507,10 +511,6 @@ asmlinkage void __init start_kernel(void) | |||
507 | console_init(); | 511 | console_init(); |
508 | if (panic_later) | 512 | if (panic_later) |
509 | panic(panic_later, panic_param); | 513 | panic(panic_later, panic_param); |
510 | profile_init(); | ||
511 | if (!irqs_disabled()) | ||
512 | printk("start_kernel(): bug: interrupts were enabled early\n"); | ||
513 | local_irq_enable(); | ||
514 | #ifdef CONFIG_BLK_DEV_INITRD | 514 | #ifdef CONFIG_BLK_DEV_INITRD |
515 | if (initrd_start && !initrd_below_start_ok && | 515 | if (initrd_start && !initrd_below_start_ok && |
516 | initrd_start < min_low_pfn << PAGE_SHIFT) { | 516 | initrd_start < min_low_pfn << PAGE_SHIFT) { |