diff options
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 0974fc0997b9..fd933b5465b6 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -1189,6 +1189,7 @@ static void __init smp_cpu_index_default(void) | |||
1189 | */ | 1189 | */ |
1190 | void __init native_smp_prepare_cpus(unsigned int max_cpus) | 1190 | void __init native_smp_prepare_cpus(unsigned int max_cpus) |
1191 | { | 1191 | { |
1192 | preempt_disable(); | ||
1192 | nmi_watchdog_default(); | 1193 | nmi_watchdog_default(); |
1193 | smp_cpu_index_default(); | 1194 | smp_cpu_index_default(); |
1194 | current_cpu_data = boot_cpu_data; | 1195 | current_cpu_data = boot_cpu_data; |
@@ -1205,7 +1206,7 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
1205 | if (smp_sanity_check(max_cpus) < 0) { | 1206 | if (smp_sanity_check(max_cpus) < 0) { |
1206 | printk(KERN_INFO "SMP disabled\n"); | 1207 | printk(KERN_INFO "SMP disabled\n"); |
1207 | disable_smp(); | 1208 | disable_smp(); |
1208 | return; | 1209 | goto out; |
1209 | } | 1210 | } |
1210 | 1211 | ||
1211 | preempt_disable(); | 1212 | preempt_disable(); |
@@ -1245,6 +1246,8 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
1245 | printk(KERN_INFO "CPU%d: ", 0); | 1246 | printk(KERN_INFO "CPU%d: ", 0); |
1246 | print_cpu_info(&cpu_data(0)); | 1247 | print_cpu_info(&cpu_data(0)); |
1247 | setup_boot_clock(); | 1248 | setup_boot_clock(); |
1249 | out: | ||
1250 | preempt_enable(); | ||
1248 | } | 1251 | } |
1249 | /* | 1252 | /* |
1250 | * Early setup to make printk work. | 1253 | * Early setup to make printk work. |