Subject: Re: sysmon_taskq/acpi_ec converted to mutex(9)/condvar(9)
To: None <tech-kern@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 07/01/2007 18:53:20
On Sun, 1 Jul 2007 15:26:41 +0200
Juan RP <juan@xtrarom.org> wrote:

> 
> Hi,
> 
> The attached patch converts sysmon_taskq.c and acpi_ec.c to use
> mutex(9)es and condvar(9)s.
> 
> acpica/OsdSynch.c has to use IPL_SCHED now, otherwise a LOCKDEBUG
> kernel will catch the error that a spin lock is held when calling the
> acpi_ec functions via AcpiOsQueueForExecution().
> 
> AFAIK, they must be spin locks because they might be called from
> interrupt context.
> 
> Let me know if this patch is correct. I've been using it since yesterday
> without any regression.
> 
> Also available at: http://www.netbsd.org/~xtraeme/smtaskq.diff

I have found some problems with this patch that I need to fix, please ignore
it for now.

-- 
Juan Romero Pardines	- The NetBSD Project
http://plog.xtrarom.org	- NetBSD/pkgsrc news in Spanish