svn commit: r221614 - projects/largeSMP/sys/powerpc/include
Attilio Rao
attilio at freebsd.org
Fri May 13 15:45:54 UTC 2011
2011/5/13 Kostik Belousov <kostikbel at gmail.com>:
> On Fri, May 13, 2011 at 03:50:47PM +0200, Attilio Rao wrote:
>> The per-cpu stuff also, is read only. The pm_active objects are
>> protected by VM locks.
>
> pm_active is not protected by any vm lock. It is set and cleared
> unlocked in the context switch code. But, the ctx switch only needs
> to set and clear a single bit at the time of switch, that makes
> the atomic operations sufficient for consistency.
>
> I had a WIP on the Intel PCID, were such protection was not enough,
> unfortunately.
You are indeed right, sorry.
What trouble were you having in your case, just for the sake of my
curiosity, if you can share?
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the svn-src-projects
mailing list