[project @ 2000-07-14 13:28:35 by simonmar]
[ghc-hetmet.git] / ghc / rts / Schedule.c
index 68f2210..31abe88 100644 (file)
@@ -1,5 +1,5 @@
 /* ---------------------------------------------------------------------------
- * $Id: Schedule.c,v 1.70 2000/05/08 15:57:01 simonmar Exp $
+ * $Id: Schedule.c,v 1.72 2000/06/20 15:15:44 simonmar Exp $
  *
  * (c) The GHC Team, 1998-2000
  *
@@ -850,12 +850,8 @@ schedule( void )
     
     cap->rCurrentTSO = t;
     
-    /* set the context_switch flag
-     */
-    if (run_queue_hd == END_TSO_QUEUE)
-      context_switch = 0;
-    else
-      context_switch = 1;
+    /* context switches are now initiated by the timer signal */
+    context_switch = 0;
 
     RELEASE_LOCK(&sched_mutex);
 
@@ -1189,7 +1185,7 @@ suspendThread( Capability *cap )
   ACQUIRE_LOCK(&sched_mutex);
 
   IF_DEBUG(scheduler,
-          sched_belch("thread %d did a _ccall_gc\n", cap->rCurrentTSO->id));
+          sched_belch("thread %d did a _ccall_gc", cap->rCurrentTSO->id));
 
   threadPaused(cap->rCurrentTSO);
   cap->rCurrentTSO->link = suspended_ccalling_threads;