Made SPARC SMP boot messages use printd instead of printk
authorAndrew Waterman <waterman@ubuntu.(none)>
Mon, 11 Jan 2010 05:59:12 +0000 (21:59 -0800)
committerAndrew Waterman <waterman@ubuntu.(none)>
Mon, 11 Jan 2010 05:59:12 +0000 (21:59 -0800)
kern/arch/sparc/cpuinfo.c
kern/arch/sparc/smp.c

index 10311ab..347b1b2 100644 (file)
@@ -40,6 +40,7 @@ print_cpuinfo(void)
 
        cprintf("CPU Info:\n");
        cprintf("ISA:             SPARC V8\n");
+       cprintf("Number of cores: %d\n",num_cores());
        cprintf("Implementation:  0x%x\n",(psr >> 28) & 0xF);
        cprintf("Version:         0x%x\n",(psr >> 24) & 0xF);
        cprintf("Number of Cores: %d\n",num_cpus);
index 8be3e2a..fb62607 100644 (file)
@@ -20,12 +20,12 @@ smp_boot(void)
 {
        extern int time_for_smp_init;
        num_cpus = 1;
-       cprintf("Cores, report in!\n");
+       printd("Cores, report in!\n");
        time_for_smp_init = 1;
 
        while(*(volatile uint32_t*)&num_cpus < num_cores());
 
-       cprintf("All cores reporting!\n");
+       printd("%d cores reporting!\n",num_cpus);
 }
 
 void
@@ -37,7 +37,7 @@ smp_init(void)
        num_cpus++;
        spin_unlock(&report_in_lock);
 
-       cprintf("Good morning, Vietnam! (core id = %d)\n",core_id());
+       printd("Good morning, Vietnam! (core id = %d)\n",core_id());
 
        smp_idle();
 }