PERFORCE change 127847 for review

John Birrell jb at FreeBSD.org
Sat Oct 20 14:59:07 PDT 2007


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

Change 127847 by jb at jb_freebsd1 on 2007/10/20 21:58:23

	Avoid including stuff which is very Solaris-specific.

Affected files ...

.. //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/cyclic.h#2 edit

Differences ...

==== //depot/projects/dtrace/src/sys/contrib/opensolaris/uts/common/sys/cyclic.h#2 (text) ====

@@ -35,8 +35,17 @@
 
 #ifndef _ASM
 #include <sys/time.h>
+#if defined(sun)
 #include <sys/cpuvar.h>
 #include <sys/cpupart.h>
+#else
+#ifdef _KERNEL
+#include <sys/pcpu.h>
+typepdef struct pcpu cpu_t;
+#else
+#define cpu_t	void
+#endif
+#endif
 #endif /* !_ASM */
 
 #define	CY_LOW_LEVEL		0


More information about the p4-projects mailing list