From owner-freebsd-smp@FreeBSD.ORG Sun Jan 28 01:08:33 2007 Return-Path: X-Original-To: freebsd-smp@freebsd.org Delivered-To: freebsd-smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBC4D16A408 for ; Sun, 28 Jan 2007 01:08:33 +0000 (UTC) (envelope-from aanton@spintech.ro) Received: from smtpx.spintech.ro (hop.spintech.ro [81.180.92.69]) by mx1.freebsd.org (Postfix) with ESMTP id 8642313C4B7 for ; Sun, 28 Jan 2007 01:08:33 +0000 (UTC) (envelope-from aanton@spintech.ro) Received: from smtpx.spintech.ro (clamsmtp [15.0.0.2]) by smtpx.spintech.ro (Postfix) with ESMTP id 56D53C9461 for ; Sun, 28 Jan 2007 03:34:58 +0200 (EET) Received: from [10.0.0.2] (beastie [10.0.0.2]) by smtpx.spintech.ro (Postfix) with ESMTP for ; Sun, 28 Jan 2007 03:34:58 +0200 (EET) Message-ID: <45BBEFCB.7090607@spintech.ro> Date: Sun, 28 Jan 2007 02:35:23 +0200 From: Alin-Adrian Anton Organization: Spintech Security Systems User-Agent: Mozilla Thunderbird 1.0 (X11/20041229) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-smp@freebsd.org X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: nice Subject: Wait for smp_start X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aanton@spintech.ro List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jan 2007 01:08:33 -0000 Hi guys, I'm using 6.1. I'm trying to make a kernel module sleep and wait for all the CPUs/cores to be up and running. Is there any elegant way of doing this now? As far as I digged I found smp_started variable, but that's kinda unreliable. I need to be woken up when this is atomically set to 1. I'll appreciate any suggestion and your time. Please CC to my address. Thanks! Yours, -- Alin-Adrian Anton GPG keyID 0xC8EBC68D [6488 4AD2 F945 413E 8966 CB12 3BF8 D295 C8EB C68D] gpg --keyserver pgp.mit.edu --recv-keys 0xC8EBC68D "It is dangerous to be right when the government is wrong." - Voltaire