From 6efcc7f11d41cbffc23b0378ca089253ad08e908 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 29 Mar 1998 12:15:57 +0000 Subject: [PATCH] Replace direct access to time with getmicrotime(). --- sys/i386/isa/sound/soundcard.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c index f1e179b9aff..cfc8ce5460f 100644 --- a/sys/i386/isa/sound/soundcard.c +++ b/sys/i386/isa/sound/soundcard.c @@ -130,11 +130,8 @@ u_long get_time(void) { struct timeval timecopy; - int x; - x = splclock(); - timecopy = time; - splx(x); + getmicrotime(&timecopy); return timecopy.tv_usec / (1000000 / hz) + (u_long) timecopy.tv_sec * hz; }