Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbWCBFuN (ORCPT ); Thu, 2 Mar 2006 00:50:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751257AbWCBFuM (ORCPT ); Thu, 2 Mar 2006 00:50:12 -0500 Received: from fmr23.intel.com ([143.183.121.15]:13984 "EHLO scsfmr003.sc.intel.com") by vger.kernel.org with ESMTP id S1750774AbWCBFuK convert rfc822-to-8bit (ORCPT ); Thu, 2 Mar 2006 00:50:10 -0500 x-mimeole: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Subject: RE: 2.6.16rc5 'found' an extra CPU. Date: Thu, 2 Mar 2006 00:49:53 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 2.6.16rc5 'found' an extra CPU. Thread-Index: AcY9r9tXD0Cwbk6hS+6uA7sKXDYtggADIu0Q From: "Brown, Len" To: "Dave Jones" , "Raj, Ashok" Cc: "Andi Kleen" , , X-OriginalArrivalTime: 02 Mar 2006 05:49:55.0715 (UTC) FILETIME=[221E1D30:01C63DBD] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1120 Lines: 30 >sysfs gets it right. > >(23:11:01:davej@nemesis:~)$ ls /sys/devices/system/cpu/ >cpu0/ cpu1/ >(23:11:07:davej@nemesis:~)$ ls /proc/acpi/processor/ >CPU1/ CPU2/ CPU3/ This is because the BIOS has three "Processor" objects in the DSDT. As I've mentioned before, /proc/acpi/*/* should not exist. Internal ACPI BIOS names "CPU1, CPU1, CPU3" in this case are actually arbitray 4-character strings, and should never be exposed to the user in the file-system. sysfs with cpu0, cpu1 -- predictable strings for objects -- gets it right, and is the direction we are going. I'm afraid that even after we get this stuff out of /proc and into sysfs where it belongs, we'll have to leave /proc/acpi around for a while b/c unfortunately people are under the impression that the path names there actually mean something and they can actually count on them -- which they can't. -Len - 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/