From: Ben Pfaff Date: Tue, 21 Sep 2004 02:32:31 +0000 (+0000) Subject: Cleanup. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=commitdiff_plain;h=a041bd06ecac50985f8a528bb8da09952519377b Cleanup. --- diff --git a/src/threads/thread.c b/src/threads/thread.c index b50eafe..560423b 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -69,15 +69,13 @@ thread_init (void) ASSERT (intr_get_level () == INTR_OFF); lock_init (&tid_lock, "tid"); + list_init (&ready_list); /* Set up a thread structure for the running thread. */ initial_thread = running_thread (); init_thread (initial_thread, "main", PRI_DEFAULT); initial_thread->status = THREAD_RUNNING; initial_thread->tid = allocate_tid (); - - /* Initialize run queue. */ - list_init (&ready_list); } /* Starts preemptive thread scheduling by enabling interrupts.