From a041bd06ecac50985f8a528bb8da09952519377b Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@cs.stanford.edu>
Date: Tue, 21 Sep 2004 02:32:31 +0000
Subject: [PATCH] Cleanup.

---
 src/threads/thread.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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.
-- 
2.30.2