PERFORCE change 131295 for review

John Birrell jb at FreeBSD.org
Wed Dec 19 22:54:36 PST 2007


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

Change 131295 by jb at jb_freebsd1 on 2007/12/20 06:54:13

	Choose to typedef struct pcpu as pcpu_t rather than cpu_t so
	that cpu_t can be redefined depening on what we're try to
	provide compatibility for.
	
	There is a case where the OpenSolaris cyclic timer device uses
	fields in struct pcpu (or their equivalent), but I don't want
	to soil our pcpu with stuff to make it all opaque to get around
	the CDDL. Instead I'll just give the cyclic timer device a
	cpu array of it's own and it turns out I want to refer to that
	with a cpu_t.
	
	(or something like that)

Affected files ...

.. //depot/projects/dtrace/src/sys/compat/opensolaris/sys/pcpu.h#4 edit

Differences ...

==== //depot/projects/dtrace/src/sys/compat/opensolaris/sys/pcpu.h#4 (text+ko) ====

@@ -32,7 +32,9 @@
 
 #include_next <sys/pcpu.h>
 
-typedef struct pcpu	cpu_t;
+typedef struct pcpu	pcpu_t;
+
+#define cpu_t		pcpu_t
 
 #define	cpu_id		pc_cpuid
 


More information about the p4-projects mailing list