powerpc/SMP: Don't spam the console with AP bringup messages

Especially on new POWER9 systems, the console can be filled with

  SMP: AP CPU #XX launched

messages.  This can also slow down the console printing.  Instead, do what
x86 now does, as of r333335, and print it all on one line, unless
bootverbose is set.
This commit is contained in:
Justin Hibbits 2018-11-05 01:53:20 +00:00
parent bc82609ae2
commit b465e0bb56

View File

@ -100,7 +100,11 @@ machdep_ap_bootstrap(void)
/* Serialize console output and AP count increment */
mtx_lock_spin(&ap_boot_mtx);
ap_awake++;
printf("SMP: AP CPU #%d launched\n", PCPU_GET(cpuid));
if (bootverbose)
printf("SMP: AP CPU #%d launched\n", PCPU_GET(cpuid));
else
printf("%s%d%s", ap_awake == 2 ? "Launching APs: " : "",
PCPU_GET(cpuid), ap_awake == mp_ncpus ? "\n" : " ");
mtx_unlock_spin(&ap_boot_mtx);
while(smp_started == 0)