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:
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.