PERFORCE change 128539 for review

John Birrell jb at FreeBSD.org
Fri Nov 2 16:21:57 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=128539

Change 128539 by jb at 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


More information about the p4-projects mailing list