Date: Thu, 6 Jan 2005 13:30:05 -0500 From: John Baldwin <jhb@FreeBSD.org> To: David Xu <davidxu@FreeBSD.org> Cc: Perforce Change Reviews <perforce@FreeBSD.org> Subject: Re: PERFORCE change 68252 for review Message-ID: <200501061330.05074.jhb@FreeBSD.org> In-Reply-To: <41DC8001.9080403@freebsd.org> References: <200501041314.j04DEVE3017245@repoman.freebsd.org> <200501051747.18388.jhb@FreeBSD.org> <41DC8001.9080403@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 05 January 2005 07:02 pm, David Xu wrote: > John Baldwin wrote: > >On Tuesday 04 January 2005 08:14 am, David Xu wrote: > >>http://perforce.freebsd.org/chv.cgi?CH=68252 > >> > >>Change 68252 by davidxu@davidxu_tiger on 2005/01/04 13:14:06 > >> > >> insert "pause" instructor for i386. > >> style fix. > > > >You can use 'cpu_spinwait()' for this to be MI. > > I know there is header file cpu.h, but it is too kernel oriented, > not every arch provides the function to userland, e.g, > alpha defined it in #ifdef _KERNEL section, userland can not > use it, why isn't it in cpufunc.h ? That should be fixed then. I think cpu_spinwait() should be ok for userland use, so I think it can be moved to cpufunc.h. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501061330.05074.jhb>