On Sat, Jun 30, 2007 at 05:30:53PM +0200, Stefan Reinauer wrote:
- Uwe Hermann uwe@hermann-uwe.de [070630 17:17]:
Bring the file cpu.h in sync with the current version of the code in the Linux kernel (as far as possible). The code is a lot simpler and shorter now.
Also, add cpu_relax() (which is also part of the Linux file) which could be useful for busy-loops (but is currently not used). Drop the cpu_relax() from spinlock.h as it's not spinlock related in any way.
The code builds, but is otherwise untested.
Signed-off-by: Uwe Hermann uwe@hermann-uwe.de
Can you test with qemu?
Otherwise Acked-by: Stefan Reinauer stepan@coresystems.de
r423.
Tested in QEMU, but that's probably not enough, as we don't use the cpuid() function at the moment, I think.
Uwe.