From owner-freebsd-arch@FreeBSD.ORG Thu May 19 22:20:42 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47FF816A4CE for ; Thu, 19 May 2005 22:20:42 +0000 (GMT) Received: from smtp.speedfactory.net (talon.speedfactory.net [66.23.216.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id B276543D3F for ; Thu, 19 May 2005 22:20:41 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 26625 invoked from network); 19 May 2005 18:20:53 +0000 Received: from 66-23-216-49.clients.speedfactory.net (HELO palm.tree.com) (66.23.216.49) by mail.speedfactory.net with AES256-SHA encrypted SMTP; 19 May 2005 18:20:53 +0000 Received: from [127.0.0.1] (localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id j4JMKdpP088684; Thu, 19 May 2005 18:20:40 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: "freebsd-arch@freebsd.org" Content-Type: text/plain Message-Id: <1116541239.7597.6779.camel@palm> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 19 May 2005 18:20:39 -0400 Content-Transfer-Encoding: 7bit Subject: nuking TDP_WAKEPROC0 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 22:20:42 -0000 The TDP_WAKEPROC0 workaround addressed the problem that wakeup for proc0 could not be called in setrunnable context and had to be delayed. Replacing sleep/wakeup for proc0 with low level primitives borrowed from starting interrupt threads allows the necessary functionality to be called directly by setrunnable(). Using a restart variable allows to get rid of periodic rescans. Please take a look at: http://people.freebsd.org/~ups/proc0.patch If nobody objects or requests more time for a review I will check in the changes early next week. Stephan