Subject: Re: callout(9), IPL_NONE and IPL_SOFTCLOCK
To: None <juan@xtrarom.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-kern
Date: 05/12/2007 18:18:43
> On Sat, 12 May 2007 17:42:00 +0900 (JST)
> yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
>
> > > Andrew (or someone else), do you know what is it? I mean, why do
> > > I have to change all mutexes inside of the callout to IPL_SOFTCLOCK?
> >
> > have you read mutex(9)?
>
> Yes, many times... there's no mention about when to use different
> IPL types or when you shouldn't mix them.
from mutex(9):
Adaptive mutexes should not be acquired from an interrupt handler.
> That means that I'll have to change the ACPI mutex to IPL_SOFTCLOCK
> to be happy with envsys2, or do you have any better suggestion?
or make your code be executed in thread context.
YAMAMOTO Takashi