Re: [RFC][PATCH -mm 1/5] PM: Make freeze_processes SMP-safe

Rafael J. Wysocki
2006-11-27T20:04:12Z

On Monday, 27 November 2006 00:28, 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.

Well, last time I checked they were "lfence" and "sfence", at least on SMP.

Greetings,
Rafael