Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Fix a regression introduced during the change o...



details:   https://anonhg.NetBSD.org/src/rev/0bce561807ce
branches:  trunk
changeset: 778460:0bce561807ce
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Mar 27 18:37:57 2012 +0000

description:
Fix a regression introduced during the change of the DMI naming conventions
(rev. 1.48). Also add a quirk for ASUSTeK's M2A-MX in order to allow
powernow(4) to attach (reported by bouyer@).

diffstat:

 sys/dev/acpi/acpi_cpu.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 79777e5b424b -r 0bce561807ce sys/dev/acpi/acpi_cpu.c
--- a/sys/dev/acpi/acpi_cpu.c   Tue Mar 27 17:57:02 2012 +0000
+++ b/sys/dev/acpi/acpi_cpu.c   Tue Mar 27 18:37:57 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu.c,v 1.48 2011/11/14 02:44:59 jmcneill Exp $ */
+/* $NetBSD: acpi_cpu.c,v 1.49 2012/03/27 18:37:57 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2010, 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu.c,v 1.48 2011/11/14 02:44:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu.c,v 1.49 2012/03/27 18:37:57 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -83,6 +83,7 @@
        const char       *vers;
 } acpicpu_quirks[] = {
        { "Supermicro", "PDSMi-LN4", "0123456789" },
+       { "ASUSTeK Computer INC.", "M2A-MX", "Rev 1.xx" },
 };
 
 CFATTACH_DECL_NEW(acpicpu, sizeof(struct acpicpu_softc),
@@ -98,9 +99,9 @@
        if (acpi_softc == NULL)
                return 0;
 
-       manu = pmf_get_platform("system-vendor");
-       prod = pmf_get_platform("system-product");
-       vers = pmf_get_platform("system-version");
+       manu = pmf_get_platform("board-vendor");
+       prod = pmf_get_platform("board-product");
+       vers = pmf_get_platform("board-version");
 
        if (manu != NULL && prod != NULL && vers != NULL) {
 



Home | Main Index | Thread Index | Old Index