On Mon, 27 Nov 2006, Pavel Machek wrote: > Hi! > > > > If frozen is atomic_t, do we need memory barrier? > > > > I think so. For example on x86-64 atomic_read() is just a read. > > I'm not sure, but for x86-64 barriers are nops, anyway, IIRC.
atomic_read() does not include its own memory barrier. If you want one, you have to write it yourself. At least, that's how I interpret Documentation/atomic_ops.txt. Alan Stern ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel