From: simonmar Date: Tue, 20 Jun 2000 15:15:44 +0000 (+0000) Subject: [project @ 2000-06-20 15:15:44 by simonmar] X-Git-Tag: Approximately_9120_patches~4165 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5a04162d00a811450176ef50b51e29a925336802;p=ghc-hetmet.git [project @ 2000-06-20 15:15:44 by simonmar] Set the context switch flag to zero when running a new thread; the timer interrupt now initiates a context switch. --- diff --git a/ghc/rts/Schedule.c b/ghc/rts/Schedule.c index 03cd012..31abe88 100644 --- a/ghc/rts/Schedule.c +++ b/ghc/rts/Schedule.c @@ -1,5 +1,5 @@ /* --------------------------------------------------------------------------- - * $Id: Schedule.c,v 1.71 2000/05/15 11:38:55 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);