Subject: Re: [PATCH] Don't panic when EEH_MAX_FAILS is exceeded

From: Sean MacLennan <[email-masked]>
Date: Sun, 20 Jul 2008 23:47:56 -0400

On Sun, 20 Jul 2008 15:17:08 -0500
"Nathan Lynch" <[email-masked]> 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