From owner-freebsd-smp@FreeBSD.ORG Mon Jan 29 16:37:56 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 7EBF116A400 for ; Mon, 29 Jan 2007 16:37:56 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by mx1.freebsd.org (Postfix) with ESMTP id 47B4F13C4B7 for ; Mon, 29 Jan 2007 16:37:56 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by wx-out-0506.google.com with SMTP id s18so1667176wxc for ; Mon, 29 Jan 2007 08:37:55 -0800 (PST) Received: by 10.90.92.7 with SMTP id p7mr6862339agb.1170087115001; Mon, 29 Jan 2007 08:11:55 -0800 (PST) Received: by 10.90.29.8 with HTTP; Mon, 29 Jan 2007 08:11:54 -0800 (PST) Message-ID: Date: Mon, 29 Jan 2007 18:11:54 +0200 From: "Vlad GALU" To: aanton@spintech.ro In-Reply-To: <45BBEFCB.7090607@spintech.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45BBEFCB.7090607@spintech.ro> Cc: freebsd-smp@freebsd.org Subject: Re: Wait for smp_start X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2007 16:37:56 -0000 On 1/28/07, Alin-Adrian Anton wrote: > 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! Depending on your purpose, maybe it'd be easier if you send a WAKEUP IPI whenever you need the available CPUs to run. > 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 > _______________________________________________ > freebsd-smp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-smp > To unsubscribe, send any mail to "freebsd-smp-unsubscribe@freebsd.org" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.