PERFORCE change 68252 for review

John Baldwin jhb at FreeBSD.org
Thu Jan 6 10:46:28 PST 2005


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 at 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 at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the p4-projects mailing list