From owner-freebsd-current@FreeBSD.ORG Tue Dec 6 09:44:56 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E710316A41F for ; Tue, 6 Dec 2005 09:44:56 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6082243D53 for ; Tue, 6 Dec 2005 09:44:56 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 814D92083; Tue, 6 Dec 2005 10:44:48 +0100 (CET) X-Spam-Tests: AWL,BAYES_00,FORGED_RCVD_HELO X-Spam-Learn: ham X-Spam-Score: -3.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on tim.des.no Received: from xps.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 6E2692080; Tue, 6 Dec 2005 10:44:48 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 513E933C1D; Tue, 6 Dec 2005 10:44:48 +0100 (CET) To: Fredrik Lindberg References: <43938F61.1050202@terranova.net> <4393F60E.2040106@shapeshifter.se> <86mzjflc97.fsf@xps.des.no> <439495B1.5060305@shapeshifter.se> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 06 Dec 2005 10:44:48 +0100 In-Reply-To: <439495B1.5060305@shapeshifter.se> (Fredrik Lindberg's message of "Mon, 05 Dec 2005 20:32:01 +0100") Message-ID: <861x0qmuen.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Travis Mikalson , current@freebsd.org Subject: Re: make.conf options you cannot use for building CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2005 09:44:57 -0000 Fredrik Lindberg writes: > Dag-Erling Sm=F8rgrav wrote: > > There is no reason to use threads in powerd. Simply merge the > > devd_read() loop into your main loop, using select() with a timeout > > instead of usleep(). > Wouldn't that turn in into a polling style again? No. > The reason to use > devd was to obtain a more interrupt driven model instead of the > sysctl-polling method originally used. Both metods are supported and > the devd method is only used if the devd.pipe is avaiable. If the devd loop is an *alternative* to the polling loop, there's even less reason to use threads. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no