Commit 4f3ab195 authored by Glauber de Oliveira Costa's avatar Glauber de Oliveira Costa Committed by Ingo Molnar

x86: decouple call to print_cpu_info from smp_store_cpu_info

This will ease integration with i386
Signed-off-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 82389871
...@@ -97,7 +97,6 @@ static void __cpuinit smp_store_cpu_info(int id) ...@@ -97,7 +97,6 @@ static void __cpuinit smp_store_cpu_info(int id)
*c = boot_cpu_data; *c = boot_cpu_data;
c->cpu_index = id; c->cpu_index = id;
identify_cpu(c); identify_cpu(c);
print_cpu_info(c);
} }
static inline void wait_for_init_deassert(atomic_t *deassert) static inline void wait_for_init_deassert(atomic_t *deassert)
...@@ -568,6 +567,8 @@ do_rest: ...@@ -568,6 +567,8 @@ do_rest:
if (cpu_isset(cpu, cpu_callin_map)) { if (cpu_isset(cpu, cpu_callin_map)) {
/* number CPUs logically, starting from 1 (BSP is 0) */ /* number CPUs logically, starting from 1 (BSP is 0) */
Dprintk("CPU has booted.\n"); Dprintk("CPU has booted.\n");
printk(KERN_INFO "CPU%d: ", cpu);
print_cpu_info(&cpu_data(cpu));
} else { } else {
boot_error = 1; boot_error = 1;
if (*((volatile unsigned char *)phys_to_virt(SMP_TRAMPOLINE_BASE)) if (*((volatile unsigned char *)phys_to_virt(SMP_TRAMPOLINE_BASE))
...@@ -751,6 +752,8 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) ...@@ -751,6 +752,8 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
*/ */
setup_boot_clock(); setup_boot_clock();
printk(KERN_INFO "CPU%d: ", 0);
print_cpu_info(&cpu_data(0));
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment