Only print out the "SMP: AP CPU #N Launched!" message on verbose boots.
The kernel printf() isn't race-free
This commit is contained in:
parent
e4544528f6
commit
469541bfde
@ -2487,18 +2487,18 @@ ap_init(void)
|
||||
|
||||
mtx_lock_spin(&ap_boot_mtx);
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
|
||||
smp_cpus++;
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
if (bootverbose)
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
/* Build our map of 'other' CPUs. */
|
||||
PCPU_SET(other_cpus, all_cpus & ~PCPU_GET(cpumask));
|
||||
|
||||
if (bootverbose)
|
||||
apic_dump("ap_init()");
|
||||
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
if (smp_cpus == mp_ncpus) {
|
||||
/* enable IPI's, tlb shootdown, freezes etc */
|
||||
atomic_store_rel_int(&smp_started, 1);
|
||||
|
@ -2487,18 +2487,18 @@ ap_init(void)
|
||||
|
||||
mtx_lock_spin(&ap_boot_mtx);
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
|
||||
smp_cpus++;
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
if (bootverbose)
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
/* Build our map of 'other' CPUs. */
|
||||
PCPU_SET(other_cpus, all_cpus & ~PCPU_GET(cpumask));
|
||||
|
||||
if (bootverbose)
|
||||
apic_dump("ap_init()");
|
||||
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
if (smp_cpus == mp_ncpus) {
|
||||
/* enable IPI's, tlb shootdown, freezes etc */
|
||||
atomic_store_rel_int(&smp_started, 1);
|
||||
|
@ -2487,18 +2487,18 @@ ap_init(void)
|
||||
|
||||
mtx_lock_spin(&ap_boot_mtx);
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
|
||||
smp_cpus++;
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
if (bootverbose)
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
/* Build our map of 'other' CPUs. */
|
||||
PCPU_SET(other_cpus, all_cpus & ~PCPU_GET(cpumask));
|
||||
|
||||
if (bootverbose)
|
||||
apic_dump("ap_init()");
|
||||
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
if (smp_cpus == mp_ncpus) {
|
||||
/* enable IPI's, tlb shootdown, freezes etc */
|
||||
atomic_store_rel_int(&smp_started, 1);
|
||||
|
@ -2487,18 +2487,18 @@ ap_init(void)
|
||||
|
||||
mtx_lock_spin(&ap_boot_mtx);
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
|
||||
smp_cpus++;
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
if (bootverbose)
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
/* Build our map of 'other' CPUs. */
|
||||
PCPU_SET(other_cpus, all_cpus & ~PCPU_GET(cpumask));
|
||||
|
||||
if (bootverbose)
|
||||
apic_dump("ap_init()");
|
||||
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
if (smp_cpus == mp_ncpus) {
|
||||
/* enable IPI's, tlb shootdown, freezes etc */
|
||||
atomic_store_rel_int(&smp_started, 1);
|
||||
|
@ -2487,18 +2487,18 @@ ap_init(void)
|
||||
|
||||
mtx_lock_spin(&ap_boot_mtx);
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
|
||||
smp_cpus++;
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
if (bootverbose)
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
/* Build our map of 'other' CPUs. */
|
||||
PCPU_SET(other_cpus, all_cpus & ~PCPU_GET(cpumask));
|
||||
|
||||
if (bootverbose)
|
||||
apic_dump("ap_init()");
|
||||
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
if (smp_cpus == mp_ncpus) {
|
||||
/* enable IPI's, tlb shootdown, freezes etc */
|
||||
atomic_store_rel_int(&smp_started, 1);
|
||||
|
@ -2487,18 +2487,18 @@ ap_init(void)
|
||||
|
||||
mtx_lock_spin(&ap_boot_mtx);
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
|
||||
smp_cpus++;
|
||||
|
||||
CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", PCPU_GET(cpuid));
|
||||
if (bootverbose)
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
/* Build our map of 'other' CPUs. */
|
||||
PCPU_SET(other_cpus, all_cpus & ~PCPU_GET(cpumask));
|
||||
|
||||
if (bootverbose)
|
||||
apic_dump("ap_init()");
|
||||
|
||||
printf("SMP: AP CPU #%d Launched!\n", PCPU_GET(cpuid));
|
||||
|
||||
if (smp_cpus == mp_ncpus) {
|
||||
/* enable IPI's, tlb shootdown, freezes etc */
|
||||
atomic_store_rel_int(&smp_started, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user