Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 27 Dec 2002 19:06:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 27 Dec 2002 19:06:27 -0500 Received: from smtp06.iddeo.es ([62.81.186.16]:16595 "EHLO smtp06.retemail.es") by vger.kernel.org with ESMTP id ; Fri, 27 Dec 2002 19:06:26 -0500 Date: Sat, 28 Dec 2002 01:14:43 +0100 From: "J.A. Magallon" To: "J.A. Magallon" Cc: Lista Linux-Kernel , Marcelo Tosatti , davem@redhat.com Subject: Re: [BUG+PATCH] binfmt_elf::create_elf_tables changes u_platform without refill Message-ID: <20021228001443.GE2079@werewolf.able.es> References: <20021227235835.GA2079@werewolf.able.es> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7BIT In-Reply-To: <20021227235835.GA2079@werewolf.able.es>; from jamagallon@able.es on Sat, Dec 28, 2002 at 00:58:35 +0100 X-Mailer: Balsa 2.0.4 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1043 Lines: 25 On 2002.12.28 J.A. Magallon wrote: > Hi all... > [...] > #if defined(__i386__) && defined(CONFIG_SMP) > if(smp_num_siblings > 1) > u_platform = u_platform - ((current->pid % 64) << 7); > ///// So original u_platform with data is lost !!! > #endif > ... [...] > > One question: why the 64 value ? Because linux supports 64 processors ? > Why not just 2, because you have two siblings at most ? > Better, shouldn't this be NR_CPUS ? So you save half stack space on ia32, or even more with CONFIG_NR_CPUS... -- J.A. Magallon \ Software is like sex: werewolf.able.es \ It's better when it's free Mandrake Linux release 9.1 (Cooker) for i586 Linux 2.4.21-pre2-jam1 (gcc 3.2.1 (Mandrake Linux 9.1 3.2.1-2mdk)) - 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/