Date: Wed, 4 Apr 2007 15:36:07 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 117366 for review Message-ID: <200704041536.l34Fa7WM076718@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=117366 Change 117366 by gonzo@gonzo_jeeves on 2007/04/04 15:35:37 o Add PCPU_LAZY_INC macro Affected files ... .. //depot/projects/mips2/src/sys/mips/include/pcpu.h#4 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/pcpu.h#4 (text+ko) ==== @@ -40,9 +40,14 @@ #define PCPUP (pcpup) +/* + * XXX The implementation of this operation should be made atomic + * with respect to preemption. + */ #define PCPU_GET(member) (PCPUP->pc_ ## member) #define PCPU_PTR(member) (&PCPUP->pc_ ## member) #define PCPU_SET(member,value) (PCPUP->pc_ ## member = (value)) +#define PCPU_LAZY_INC(member) (++PCPUP->pc_ ## member) extern struct pcpu *pcpup;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704041536.l34Fa7WM076718>