From owner-p4-projects@FreeBSD.ORG Mon Jun 26 18:37:16 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6742616A5C0; Mon, 26 Jun 2006 18:37:16 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4360516A5BC; Mon, 26 Jun 2006 18:37:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C49444840; Mon, 26 Jun 2006 13:56:37 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k5QDuZ0k083303; Mon, 26 Jun 2006 09:56:37 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: John Birrell Date: Mon, 26 Jun 2006 09:55:25 -0400 User-Agent: KMail/1.9.1 References: <200606260537.k5Q5bOgw020000@repoman.freebsd.org> In-Reply-To: <200606260537.k5Q5bOgw020000@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606260955.25591.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Mon, 26 Jun 2006 09:56:37 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1563/Mon Jun 26 05:00:08 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Perforce Change Reviews Subject: Re: PERFORCE change 100025 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 18:37:16 -0000 On Monday 26 June 2006 01:37, John Birrell wrote: > http://perforce.freebsd.org/chv.cgi?CH=100025 > > Change 100025 by jb@jb_freebsd2 on 2006/06/26 05:37:23 > > The use of FreeBSD's semaphores here creates scheduler instability. > This device needs a clean path from the timer interrupt. > > For the time being, since I'm only working on single processor > systems, comment out the semaphore calls. When I get access to a > multi-cpu machine, I'll need to implement a simple semaphore system > for use here. The only thing you can use from the timer interrupt is a spin mutex as far as synchronization primitives. Note that you can provide sleep/wakeup via msleep_spin() and wakeup() + wakeup_one(). -- John Baldwin