Date: Thu, 11 Jan 2001 07:18:01 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: John Baldwin <jhb@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, Jake Burkholder <jake@FreeBSD.org> Subject: Re: cvs commit: src/sys/alpha/alpha interrupt.c machdep.c mp_mac Message-ID: <Pine.BSF.4.21.0101110716320.26600-100000@besplex.bde.org> In-Reply-To: <XFMail.010110113507.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 10 Jan 2001, John Baldwin wrote: > On 10-Jan-01 Bruce Evans wrote: > > On Tue, 9 Jan 2001, Jake Burkholder wrote: > >> Log: > >> Use PCPU_GET, PCPU_PTR and PCPU_SET to access all per-cpu variables > >> other then curproc. > > > > I wish I had objected earlier to your previous changes to prepare for > > this mistake. Machine-independent code shouldn't know that some > > There is nothign wrong with MI code knowing that it is running on a SMP-aware > kernel. SMP is something that shouldn't be grafted into the side of the > kernel, it is something it should be fully aware of. The locking requirements > are different for per-cpu variables than for global ones for example. (Most > per-cpu variables don't need locking since they aren't contended, as opposed to > shared variables.) The macros can be made more efficient for the common case > (in fact, Jake already has it done) but that is an optimization that can be > done later. For now let's focus on getting this working right and worry about > optimization later. It was already working right (except for a minor problem with modules that was fixed in my version). You are wasting time making it work wrong. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101110716320.26600-100000>