Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2008 22:25:34 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 132342 for review
Message-ID:  <200801022225.m02MPYO3008115@repoman.freebsd.org>

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

Change 132342 by imp@imp_paco-paco on 2008/01/02 22:24:45

	more PCPU_* stuff

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/include/pcpu.h#4 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/include/pcpu.h#4 (text+ko) ====

@@ -67,9 +67,12 @@
 #define	PCPUP	pcpup
 #endif /* SMP */
 
+#define	PCPU_ADD(member, value)	(PCPUP->pc_ ## member += (value))
 #define	PCPU_GET(member)	(PCPUP->pc_ ## member)
+#define	PCPU_INC(member)	PCPU_ADD(member, 1)
 #define	PCPU_PTR(member)	(&PCPUP->pc_ ## member)
 #define	PCPU_SET(member,value)	(PCPUP->pc_ ## member = (value))
+#define PCPU_LAZY_INC(member)   (++PCPUP->pc_ ## member)
 
 #endif	/* _KERNEL */
 



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