diff options
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/init/main.c b/init/main.c index 77cb720fed4e..72a521c0da07 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -76,15 +76,6 @@ | |||
76 | #include <asm/smp.h> | 76 | #include <asm/smp.h> |
77 | #endif | 77 | #endif |
78 | 78 | ||
79 | /* | ||
80 | * This is one of the first .c files built. Error out early if we have compiler | ||
81 | * trouble. | ||
82 | */ | ||
83 | |||
84 | #if __GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 0 | ||
85 | #warning gcc-4.1.0 is known to miscompile the kernel. A different compiler version is recommended. | ||
86 | #endif | ||
87 | |||
88 | static int kernel_init(void *); | 79 | static int kernel_init(void *); |
89 | 80 | ||
90 | extern void init_IRQ(void); | 81 | extern void init_IRQ(void); |
@@ -381,12 +372,7 @@ EXPORT_SYMBOL(nr_cpu_ids); | |||
381 | /* An arch may set nr_cpu_ids earlier if needed, so this would be redundant */ | 372 | /* An arch may set nr_cpu_ids earlier if needed, so this would be redundant */ |
382 | static void __init setup_nr_cpu_ids(void) | 373 | static void __init setup_nr_cpu_ids(void) |
383 | { | 374 | { |
384 | int cpu, highest_cpu = 0; | 375 | nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1; |
385 | |||
386 | for_each_possible_cpu(cpu) | ||
387 | highest_cpu = cpu; | ||
388 | |||
389 | nr_cpu_ids = highest_cpu + 1; | ||
390 | } | 376 | } |
391 | 377 | ||
392 | #ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA | 378 | #ifndef CONFIG_HAVE_SETUP_PER_CPU_AREA |
@@ -528,9 +514,9 @@ static void __init boot_cpu_init(void) | |||
528 | { | 514 | { |
529 | int cpu = smp_processor_id(); | 515 | int cpu = smp_processor_id(); |
530 | /* Mark the boot cpu "present", "online" etc for SMP and UP case */ | 516 | /* Mark the boot cpu "present", "online" etc for SMP and UP case */ |
531 | cpu_set(cpu, cpu_online_map); | 517 | set_cpu_online(cpu, true); |
532 | cpu_set(cpu, cpu_present_map); | 518 | set_cpu_present(cpu, true); |
533 | cpu_set(cpu, cpu_possible_map); | 519 | set_cpu_possible(cpu, true); |
534 | } | 520 | } |
535 | 521 | ||
536 | void __init __weak smp_setup_processor_id(void) | 522 | void __init __weak smp_setup_processor_id(void) |
@@ -541,15 +527,6 @@ void __init __weak thread_info_cache_init(void) | |||
541 | { | 527 | { |
542 | } | 528 | } |
543 | 529 | ||
544 | void __init __weak arch_early_irq_init(void) | ||
545 | { | ||
546 | } | ||
547 | |||
548 | void __init __weak early_irq_init(void) | ||
549 | { | ||
550 | arch_early_irq_init(); | ||
551 | } | ||
552 | |||
553 | asmlinkage void __init start_kernel(void) | 530 | asmlinkage void __init start_kernel(void) |
554 | { | 531 | { |
555 | char * command_line; | 532 | char * command_line; |