On Sun, 20 Jul 2008 15:17:08 -0500 "Nathan Lynch" <[EMAIL PROTECTED]> wrote:
> Sean MacLennan wrote: > > > Why can you not msleep within a spinlock? And when was this change > > brought in? > > Giving up the cpu while holding a spinlock risks locking up the system > in the worst case -- if another task tries to acquire the held lock it > can spin indefinitely. I guess I am too x86 centric. On the x86 an msleep does not give up the CPU. It does a busy wait. So what sleep do you use on the PowerPC when you need a delay for hardware reasons? Cheers, Sean _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev