main.c (c74a7469f97c0f40b46e82ee979f9fb1bb6e847c) | main.c (c3bc8fd637a9623f5c507bd18f9677effbddf584) |
---|---|
1/* 2 * linux/init/main.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * GK 2/5/95 - Changed to support mounting root fs via NFS 7 * Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96 8 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96 --- 634 unchanged lines hidden (view full) --- 643 timekeeping_init(); 644 time_init(); 645 sched_clock_postinit(); 646 printk_safe_init(); 647 perf_event_init(); 648 profile_init(); 649 call_function_init(); 650 WARN(!irqs_disabled(), "Interrupts were enabled early\n"); | 1/* 2 * linux/init/main.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * GK 2/5/95 - Changed to support mounting root fs via NFS 7 * Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96 8 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96 --- 634 unchanged lines hidden (view full) --- 643 timekeeping_init(); 644 time_init(); 645 sched_clock_postinit(); 646 printk_safe_init(); 647 perf_event_init(); 648 profile_init(); 649 call_function_init(); 650 WARN(!irqs_disabled(), "Interrupts were enabled early\n"); |
651 652 lockdep_init_early(); 653 |
|
651 early_boot_irqs_disabled = false; 652 local_irq_enable(); 653 654 kmem_cache_init_late(); 655 656 /* 657 * HACK ALERT! This is early. We're enabling the console before 658 * we've done PCI setups etc, and console_init() must be aware of 659 * this. But we do want output early, in case something goes wrong. 660 */ 661 console_init(); 662 if (panic_later) 663 panic("Too many boot %s vars at `%s'", panic_later, 664 panic_param); 665 | 654 early_boot_irqs_disabled = false; 655 local_irq_enable(); 656 657 kmem_cache_init_late(); 658 659 /* 660 * HACK ALERT! This is early. We're enabling the console before 661 * we've done PCI setups etc, and console_init() must be aware of 662 * this. But we do want output early, in case something goes wrong. 663 */ 664 console_init(); 665 if (panic_later) 666 panic("Too many boot %s vars at `%s'", panic_later, 667 panic_param); 668 |
666 lockdep_info(); | 669 lockdep_init(); |
667 668 /* 669 * Need to run this when irqs are enabled, because it wants 670 * to self-test [hard/soft]-irqs on/off lock inversion bugs 671 * too: 672 */ 673 locking_selftest(); 674 --- 494 unchanged lines hidden --- | 670 671 /* 672 * Need to run this when irqs are enabled, because it wants 673 * to self-test [hard/soft]-irqs on/off lock inversion bugs 674 * too: 675 */ 676 locking_selftest(); 677 --- 494 unchanged lines hidden --- |