summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/sound
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-03-29 12:15:57 +0000
committerphk <phk@FreeBSD.org>1998-03-29 12:15:57 +0000
commit7dc4766acbcde79a558277f5de0aa12f23505884 (patch)
tree2b5a0a888d873e7d1e2441105efefc3d4a0fbb6d /sys/i386/isa/sound
parent8620163d92d9006a7481c39968c970a00bfb7b4f (diff)
downloadFreeBSD-src-7dc4766acbcde79a558277f5de0aa12f23505884.zip
FreeBSD-src-7dc4766acbcde79a558277f5de0aa12f23505884.tar.gz
Replace direct access to time with getmicrotime().
Diffstat (limited to 'sys/i386/isa/sound')
-rw-r--r--sys/i386/isa/sound/soundcard.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/i386/isa/sound/soundcard.c b/sys/i386/isa/sound/soundcard.c
index f1e179b..cfc8ce5 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;
}
OpenPOWER on IntegriCloud