From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 2 06:06:00 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CABAC16A4CE; Sat, 2 Apr 2005 06:06:00 +0000 (GMT) Received: from ylpvm29.prodigy.net (ylpvm29-ext.prodigy.net [207.115.57.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64CD143D46; Sat, 2 Apr 2005 06:06:00 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.5.51] (adsl-64-171-184-204.dsl.snfc21.pacbell.net [64.171.184.204])j3265Inr018431; Sat, 2 Apr 2005 01:05:19 -0500 Message-ID: <424E363B.2010506@root.org> Date: Fri, 01 Apr 2005 22:05:47 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041205) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dinesh Nair References: <42334057.5070705@gmx.net> <42492F0B.3040704@alphaque.com> <424B7A2D.5060902@alphaque.com> <424E13B1.4090607@alphaque.com> In-Reply-To: <424E13B1.4090607@alphaque.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 02 Apr 2005 12:49:13 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-acpi@freebsd.org Subject: Re: enable acpi X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2005 06:06:01 -0000 Dinesh Nair wrote: > On 03/31/05 20:51 John Baldwin said the following: > >> The problem is that the taskqueue_swi in 4.x doesn't have a thread >> context that can be slept on via tsleep(). The fix would be to create >> a kthread in which to run the ACPI tasks. 4.x already has one such >> kthread for the taskqueue_thread taskqueue that you could use as a >> reference if you wish to do this yourself. > > > thanx for the pointer, john. with your explanation, the fix was simple. > since applying this, it's not paniced in over 24 hours of continuous > running. patch attached. i'll also raise a PR for this. Don't bother, I already committed it. -- Nate