diff options
author | phk <phk@FreeBSD.org> | 1998-03-29 12:15:57 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-03-29 12:15:57 +0000 |
commit | 7dc4766acbcde79a558277f5de0aa12f23505884 (patch) | |
tree | 2b5a0a888d873e7d1e2441105efefc3d4a0fbb6d /sys/i386/isa/sound | |
parent | 8620163d92d9006a7481c39968c970a00bfb7b4f (diff) | |
download | FreeBSD-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.c | 5 |
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; } |