Date: Mon, 05 Aug 2002 01:54:45 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Luigi Rizzo <rizzo@icir.org> Cc: smp@freebsd.org Subject: Re: how to create per-cpu variables in SMP kernels ? Message-ID: <3D4E3D55.38ECB8E@mindspring.com> References: <20020804182713.A14944@iguana.icir.org> <3D4E1ECB.348978D1@mindspring.com> <20020805015340.A17716@iguana.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote: > i am asking because in the code I see several instance of things like > > p = curproc; > <code using p instead of curproc> > > in a context where curproc is not supposed to change. Is there a > performance bonus in doing this, or not ? Yes. Look at the definition of curproc. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4E3D55.38ECB8E>