Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP
id AA2378 ; Mon, 01 Mar 93 10:56:45 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!agate.berkeley.edu!cgd
From: cgd@gaia.CS.Berkeley.EDU (Chris G. Demetriou)
Newsgroups: comp.os.386bsd.misc
Subject: Re: effecient, high-resolution microtime for 386
Followup-To: comp.os.386bsd.misc
Date: 27 Feb 93 20:52:19
Organization: Kernel Hackers 'r' Us
Lines: 43
Distribution: world
Message-ID: <CGD.93Feb27205219@gaia.CS.Berkeley.EDU>
References: <29308@dog.ee.lbl.gov>
NNTP-Posting-Host: gaia.cs.berkeley.edu
In-reply-to: mccanne@horse.ee.lbl.gov's message of 28 Feb 1993 04:05:29 GMT
In article <29308@dog.ee.lbl.gov> mccanne@horse.ee.lbl.gov (Steven McCanne) writes:
>There is a high-resolution version of the microtime routine for
>386BSD and BSD/386 available via anonymous ftp from ftp.ee.lbl.gov
>in the compressed tarchive microtime-i386.tar.Z.
COOL! thanks Steve (and Sean, who did the 386bsd patch set)!
however, for 386bsd, the patch @the bottom of this message is
left out, giving a multiple-definition of _microtime when building
the kernel...
chris
=========================
diff -c i386/i386/machdep.c-pk0.2.1 i386/i386/machdep.c
*** i386/i386/machdep.c-pk0.2.1 Sat Feb 27 20:37:22 1993
--- i386/i386/machdep.c Sat Feb 27 20:38:09 1993
***************
*** 561,566 ****
--- 561,567 ----
DELAY(10000);
}
+ #ifdef HZ
microtime(tvp)
register struct timeval *tvp;
{
***************
*** 574,579 ****
--- 575,581 ----
}
splx(s);
}
+ #endif
physstrat(bp, strat, prio)
struct buf *bp;
--
Chris G. Demetriou cgd@cs.berkeley.edu
MENTALLY CONTAMINATED and proud of it!