Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 25 Oct 2002 16:49:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 25 Oct 2002 16:49:29 -0400 Received: from pc1-cwma1-5-cust42.swa.cable.ntl.com ([80.5.120.42]:24519 "EHLO irongate.swansea.linux.org.uk") by vger.kernel.org with ESMTP id ; Fri, 25 Oct 2002 16:49:28 -0400 Subject: Re: [PATCH] How to get number of physical CPU in linux from user space? From: Alan Cox To: Robert Love Cc: Linux Kernel Mailing List , "Nakajima, Jun" , chrisl@vmware.com, "Martin J. Bligh" In-Reply-To: <1035572950.1501.3429.camel@phantasy> References: <1035572950.1501.3429.camel@phantasy> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 25 Oct 2002 22:13:04 +0100 Message-Id: <1035580384.13032.84.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 583 Lines: 15 On Fri, 2002-10-25 at 20:09, Robert Love wrote: > +#ifdef CONFIG_SMP > + seq_printf(m, "physical processor ID\t: %d\n", phys_proc_id[n]); > + seq_printf(m, "number of siblings\t: %d\n", smp_num_siblings); > +#endif Congratulations you just broke glibc. There are reasons the -ac patch was changed to print something a little different. - 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/