Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2007 17:47:04 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123918 for review
Message-ID:  <200707221747.l6MHl4K3013590@repoman.freebsd.org>

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

Change 123918 by gonzo@gonzo_jeeves on 2007/07/22 17:46:35

	o Add PCPU_ADD and PCPU_INC memebers.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/include/pcpu.h#5 edit

Differences ...

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

@@ -44,7 +44,10 @@
  * XXX The implementation of this operation should be made atomic
  * with respect to preemption.
  */
+
+#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)



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