diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-03-19 13:26:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:04 -0400 |
commit | 83f7eb9c674c1bcaad6ca258fdd7dd3b96465a62 (patch) | |
tree | edc24f8ee55d3bab0a35d7dc72da17a1137cf880 /arch/x86/kernel/smpboot.c | |
parent | a8db8453ff52609b14716361651ad10d2ab66682 (diff) |
x86: merge native_smp_cpus_done
They look similar enough, and are merged. Only difference
(zap_low_mapping for i386) is inside ifdef
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index b214d8dcc07a..26118b4a1c38 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -880,7 +880,6 @@ do_rest: | |||
880 | apic_write(APIC_ESR, 0); | 880 | apic_write(APIC_ESR, 0); |
881 | apic_read(APIC_ESR); | 881 | apic_read(APIC_ESR); |
882 | 882 | ||
883 | |||
884 | /* | 883 | /* |
885 | * Starting actual IPI sequence... | 884 | * Starting actual IPI sequence... |
886 | */ | 885 | */ |
@@ -1017,6 +1016,26 @@ void __init native_smp_prepare_boot_cpu(void) | |||
1017 | per_cpu(cpu_state, me) = CPU_ONLINE; | 1016 | per_cpu(cpu_state, me) = CPU_ONLINE; |
1018 | } | 1017 | } |
1019 | 1018 | ||
1019 | void __init native_smp_cpus_done(unsigned int max_cpus) | ||
1020 | { | ||
1021 | /* | ||
1022 | * Cleanup possible dangling ends... | ||
1023 | */ | ||
1024 | smpboot_restore_warm_reset_vector(); | ||
1025 | |||
1026 | Dprintk("Boot done.\n"); | ||
1027 | |||
1028 | impress_friends(); | ||
1029 | smp_checks(); | ||
1030 | #ifdef CONFIG_X86_IO_APIC | ||
1031 | setup_ioapic_dest(); | ||
1032 | #endif | ||
1033 | check_nmi_watchdog(); | ||
1034 | #ifdef CONFIG_X86_32 | ||
1035 | zap_low_mappings(); | ||
1036 | #endif | ||
1037 | } | ||
1038 | |||
1020 | #ifdef CONFIG_HOTPLUG_CPU | 1039 | #ifdef CONFIG_HOTPLUG_CPU |
1021 | void remove_siblinginfo(int cpu) | 1040 | void remove_siblinginfo(int cpu) |
1022 | { | 1041 | { |