From 6c55193a58f3e29e1bfda8d8f30df76ac7516701 Mon Sep 17 00:00:00 2001 From: Geoffrey Challen Date: Wed, 17 Feb 2016 07:12:09 -0500 Subject: [PATCH] Eliminate printfs to speed up boot and exit. --- kern/thread/thread.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kern/thread/thread.c b/kern/thread/thread.c index 6869602..0144d25 100644 --- a/kern/thread/thread.c +++ b/kern/thread/thread.c @@ -411,8 +411,6 @@ cpu_hatch(unsigned software_number) spl0(); cpu_identify(buf, sizeof(buf)); - kprintf("cpu%u: %s\n", software_number, buf); - V(cpu_startup_sem); thread_exit(); } @@ -436,6 +434,7 @@ thread_start_cpus(void) P(cpu_startup_sem); } sem_destroy(cpu_startup_sem); + kprintf("%d cpus online\n", i + 1); cpu_startup_sem = NULL; } @@ -1165,7 +1164,6 @@ interprocessor_interrupt(void) curcpu->c_number); } spinlock_release(&curcpu->c_runqueue_lock); - kprintf("cpu%d: offline.\n", curcpu->c_number); cpu_halt(); } if (bits & (1U << IPI_UNIDLE)) {