Author: jhibbits Date: Mon Nov 5 01:53:20 2018 New Revision: 340147 URL: https://svnweb.freebsd.org/changeset/base/340147
Log: 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. Modified: head/sys/powerpc/powerpc/mp_machdep.c Modified: head/sys/powerpc/powerpc/mp_machdep.c ============================================================================== --- head/sys/powerpc/powerpc/mp_machdep.c Mon Nov 5 00:20:58 2018 (r340146) +++ head/sys/powerpc/powerpc/mp_machdep.c Mon Nov 5 01:53:20 2018 (r340147) @@ -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) _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"