Date: Fri, 17 Nov 2000 10:36:15 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: Mark Murray <mark@grondar.za> Cc: arch@FreeBSD.ORG Subject: RE: new monotime() call for all architectures. Message-ID: <Pine.LNX.4.21.0011171034270.11407-100000@zeppo.feral.com> In-Reply-To: <XFMail.001117103013.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In case there's ever a sparc port, all of the worthwhile sparc machines have register onchip too. I like what you're doing with this- it would allow me to get rid of the nanotime calls I use to time some loops for the Qlogic driver. > > On 17-Nov-00 Mark Murray wrote: > > Hi all > > > > I need a fast-as-possible "time" inside the kernel to help > > speed up the /dev/random device. I say "time", because although > > it needs to be a function of time (preferably accurate and linear), > > it has no need whatsoever to be "real time", so a simple counter > > is quite OK. > > > > Pentiums, Alphas and IA64's all have a suitable register on chip, > > while I have to make do with nanotime(9) on i386 and i486. > > > > I have prepared a monotime(9) call for the i386, alpha and ia64 > > architectures (patch enclosed). I have been running this for a > > week or two now with promising results (on a Pentium). With > > the exception of the minimum of "glue" (and nanotime on older > > architectures), these functions reduce to one instruction. > > > > Comments? Suggestions? Nobel Prize nominations? I'd like to > > commit this soonish if possible. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0011171034270.11407-100000>