Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030427AbVKWWb7 (ORCPT ); Wed, 23 Nov 2005 17:31:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030426AbVKWWb7 (ORCPT ); Wed, 23 Nov 2005 17:31:59 -0500 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:9608 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S1030427AbVKWWb6 (ORCPT ); Wed, 23 Nov 2005 17:31:58 -0500 Date: Wed, 23 Nov 2005 23:30:06 +0100 From: Pavel Machek To: Jeff Garzik Cc: Andi Kleen , Alan Cox , Linus Torvalds , "H. Peter Anvin" , Gerd Knorr , Dave Jones , Zachary Amsden , Andrew Morton , Linux Kernel Mailing List , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar Subject: Re: [patch] SMP alternatives Message-ID: <20051123223006.GD24220@elf.ucw.cz> References: <1132764133.7268.51.camel@localhost.localdomain> <20051123163906.GF20775@brahms.suse.de> <1132766489.7268.71.camel@localhost.localdomain> <4384AECC.1030403@zytor.com> <1132782245.13095.4.camel@localhost.localdomain> <20051123211353.GR20775@brahms.suse.de> <4384E333.8030901@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4384E333.8030901@pobox.com> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 589 Lines: 20 Hi! > >The idea was to turn LOCK on only if the process has any > >shared writable mapping and num_online_cpus() > 0. > > Yep. Though I presume you mean "> 1". > > One hopes that num_online_cpus() never reaches zero during runtime ;-) Actually num_online_cpus() is very usefull -- suspend to RAM ;-))))). Pavel -- Thanks, Sharp! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/