Date: Fri, 2 Nov 2007 23:21:56 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128539 for review Message-ID: <200711022321.lA2NLuwk006023@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128539 Change 128539 by jb@jb_freebsd1 on 2007/11/02 23:21:46 Move the LBOLT definition outside #ifdef _KERNEL so that it can be used in userspace too. Affected files ... .. //depot/projects/dtrace/src/sys/compat/opensolaris/sys/time.h#4 edit Differences ... ==== //depot/projects/dtrace/src/sys/compat/opensolaris/sys/time.h#4 (text+ko) ==== @@ -38,8 +38,9 @@ typedef longlong_t hrtime_t; +#define LBOLT ((gethrtime() * hz) / NANOSEC) + #ifdef _KERNEL -#define LBOLT ((gethrtime() * hz) / NANOSEC) #define lbolt64 (int64_t)(LBOLT) static __inline hrtime_t
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711022321.lA2NLuwk006023>