Added debug to Threads_GetNext
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 05:40:56 +0000 (13:40 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 05:40:56 +0000 (13:40 +0800)
Kernel/arch/x86/proc.c
Kernel/threads.c

index f04793a..fd91643 100644 (file)
@@ -11,7 +11,7 @@
 #endif
 
 // === FLAGS ===
-#define DEBUG_TRACE_SWITCH     1
+#define DEBUG_TRACE_SWITCH     0
 
 // === CONSTANTS ===
 #define        SWITCH_MAGIC    0xFFFACE55      // There is no code in this area
index da65596..bb0ec73 100644 (file)
@@ -535,6 +535,8 @@ tThread *Threads_GetNextToRun(int CPU)
                return gActiveThreads;
        }
        
+       Log("giNumActiveThreads=%i,giTotalTickets=%i",
+               giNumActiveThreads, giTotalTickets);
        // Get the ticket number
        ticket = number = rand() % giTotalTickets;
        

UCC git Repository :: git.ucc.asn.au