Thread (9 messages) flat view 9 messages, 5 authors, 2008-07-21

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

From: Sean MacLennan <hidden>
Date: 2008-07-21 03:47:55

On Sun, 20 Jul 2008 15:17:08 -0500
"Nathan Lynch" [off-list ref] wrote:
Sean MacLennan wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help