[PATCH] Don't panic when EEH_MAX_FAILS is exceeded

Sean MacLennan smaclennan at pikatech.com
Mon Jul 21 13:47:56 EST 2008


On Sun, 20 Jul 2008 15:17:08 -0500
"Nathan Lynch" <ntl at pobox.com> 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



More information about the Linuxppc-dev mailing list