From: sof Date: Fri, 28 Mar 2003 23:46:40 +0000 (+0000) Subject: [project @ 2003-03-28 23:46:39 by sof] X-Git-Tag: Approx_11550_changesets_converted~1013 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f1e346a7a4b9f3bf8b695e35b1c5ff8d67b874af;p=ghc-hetmet.git [project @ 2003-03-28 23:46:39 by sof] block_vtalrm_signal() and unblock_vtalrm_signal(): unused, disable. --- diff --git a/ghc/rts/Itimer.c b/ghc/rts/Itimer.c index f1dd823..8dee12c 100644 --- a/ghc/rts/Itimer.c +++ b/ghc/rts/Itimer.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Itimer.c,v 1.32 2003/02/22 04:51:50 sof Exp $ + * $Id: Itimer.c,v 1.33 2003/03/28 23:46:39 sof Exp $ * * (c) The GHC Team, 1995-1999 * @@ -136,6 +136,8 @@ stopTicker() } # endif +#if 0 +/* Currently unused */ void block_vtalrm_signal(void) { @@ -157,6 +159,7 @@ unblock_vtalrm_signal(void) (void) sigprocmask(SIG_UNBLOCK, &signals, NULL); } +#endif /* gettimeofday() takes around 1us on our 500MHz PIII. Since we're * only calling it 50 times/s, it shouldn't have any great impact. diff --git a/ghc/rts/Itimer.h b/ghc/rts/Itimer.h index 03e47d8..e473ad5 100644 --- a/ghc/rts/Itimer.h +++ b/ghc/rts/Itimer.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Itimer.h,v 1.11 2003/02/22 04:51:51 sof Exp $ + * $Id: Itimer.h,v 1.12 2003/03/28 23:46:40 sof Exp $ * * (c) The GHC Team 1998-2001 * @@ -12,7 +12,10 @@ extern int startTicker( nat ms ); extern int stopTicker ( void ); +extern unsigned int getourtimeofday ( void ); +#if 0 +/* unused */ extern void block_vtalrm_signal ( void ); extern void unblock_vtalrm_signal ( void ); -extern unsigned int getourtimeofday ( void ); +#endif #endif /* __ITIMER_H__ */