From: sof Date: Wed, 6 Feb 2002 01:21:41 +0000 (+0000) Subject: [project @ 2002-02-06 01:21:40 by sof] X-Git-Tag: Approximately_9120_patches~143 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=7f906dc8d0aa5505fd35b1eda25feb12c6f42bf8;p=ghc-hetmet.git [project @ 2002-02-06 01:21:40 by sof] make stat_getElapsedTime(), SMP-only again --- diff --git a/ghc/rts/Stats.c b/ghc/rts/Stats.c index 9002164..5052e26 100644 --- a/ghc/rts/Stats.c +++ b/ghc/rts/Stats.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stats.c,v 1.43 2002/02/04 20:12:08 sof Exp $ + * $Id: Stats.c,v 1.44 2002/02/06 01:21:40 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -601,7 +601,7 @@ stat_workerStop(void) } #endif -#if defined(RTS_SUPPORTS_THREADS) +#if defined(SMP) long int stat_getElapsedTime () { getTimes(); diff --git a/ghc/rts/Stats.h b/ghc/rts/Stats.h index 7365f54..626eb07 100644 --- a/ghc/rts/Stats.h +++ b/ghc/rts/Stats.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Stats.h,v 1.16 2002/02/04 20:12:09 sof Exp $ + * $Id: Stats.h,v 1.17 2002/02/06 01:21:41 sof Exp $ * * (c) The GHC Team, 1998-1999 * @@ -47,6 +47,6 @@ extern double mut_user_time_during_heap_census(void); extern void statDescribeGens( void ); extern HsInt getAllocations( void ); -#if defined(RTS_SUPPORTS_THREADS) +#if defined(SMP) extern long int stat_getElapsedTime ( void ); #endif