|
@@ -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
|
|
@@ -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) {
|