From owner-cvs-all@FreeBSD.ORG Wed Nov 26 11:01:34 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5FF916A4CE; Wed, 26 Nov 2003 11:01:34 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30B3543FD7; Wed, 26 Nov 2003 11:01:34 -0800 (PST) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAQJ1YXJ024341; Wed, 26 Nov 2003 11:01:34 -0800 (PST) (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAQJ1XPa024336; Wed, 26 Nov 2003 11:01:33 -0800 (PST) (envelope-from njl) Message-Id: <200311261901.hAQJ1XPa024336@repoman.freebsd.org> From: Nate Lawson Date: Wed, 26 Nov 2003 11:01:33 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi_cpu.c src/sys/modules/acpi Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 19:01:34 -0000 njl 2003/11/26 11:01:33 PST FreeBSD src repository Modified files: sys/dev/acpica acpi_cpu.c sys/modules/acpi Makefile Log: * Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches the idx'th present CPU with pc_acpi_id equal to *acpi_id. If *acpi_id does not match that processor's pc_acpi_id, return the value for ProcId derived from the MADT in *acpi_id. If pc_acpi_id is 0xffffffff, always override it with the value of *acpi_id. Finally, return pc_cpuid in *cpu_id and use that as our primary key. * Use pc_cpuid as our unique key because we know it is valid since MD code set it. The values for ProcId in the ASL and MADT don't match up on some machines (!), forcing us to fall back to ordered probing in that case. * Remove some #ifdef SMP since the refcount doesn't hurt performance and will be needed for dynamic _CST objects. Only one #ifdef SMP (for smp_rendezvous) remains. * Hook up SMP in the compile flags in the Makefile. Tested by: marcel, truckman Approved by: re (scottl) Revision Changes Path 1.21 +48 -49 src/sys/dev/acpica/acpi_cpu.c 1.33 +5 -2 src/sys/modules/acpi/Makefile