aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-16 05:17:50 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-16 05:17:50 -0400
commit1791a78c0b10fe548bf08a2ed7f84a4ea1385430 (patch)
tree3bc3e71a900a364aaaaf28d553ce44e5dc27092b /arch/x86/kernel/smpboot.c
parentbf07dc864902b3e788de5ab50dc62d5677da90f2 (diff)
parent066519068ad2fbe98c7f45552b1f592903a9c8c8 (diff)
Merge branch 'linus' into x86/cleanups
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r--arch/x86/kernel/smpboot.c5
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 */
1190void __init native_smp_prepare_cpus(unsigned int max_cpus) 1190void __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();
1249out:
1250 preempt_enable();
1248} 1251}
1249/* 1252/*
1250 * Early setup to make printk work. 1253 * Early setup to make printk work.