Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2007 06:54:35 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 131295 for review
Message-ID:  <200712200654.lBK6sZxA069642@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=131295

Change 131295 by jb@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712200654.lBK6sZxA069642>